Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug REPL Evaluate code in any module #221

Closed
karthiknadig opened this issue Mar 19, 2018 · 4 comments
Closed

Debug REPL Evaluate code in any module #221

karthiknadig opened this issue Mar 19, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@karthiknadig
Copy link
Member

No description provided.

@int19h int19h transferred this issue from microsoft/ptvsd May 4, 2020
@int19h int19h added the enhancement New feature or request label Jun 19, 2020
@int19h
Copy link
Contributor

int19h commented Feb 1, 2023

No traction on this to date; closing until we decide we actually need it.

@int19h int19h closed this as completed Feb 1, 2023
@oplatek
Copy link

oplatek commented Dec 7, 2023

Hi, I found the no traction comment funny.

I started using VSCode 3 months ago because of Copilot, and last week, I needed to do some serious debugging.

Because of missing REPL, I decided to debug the whole thing in Ipdb and even wrote a blog post about it.
https://opla.cz/2023/12/05/debugging-in-vscode/

To conclude, I would greatly appreciate the REPL. It would allow me to return debugging in VScode instead of Ipdb :)

@int19h
Copy link
Contributor

int19h commented Dec 7, 2023

Debug Console is the VSCode equivalent of REPL. This issue is not about REPL in general, but specifically about one potential feature: evaluating code in that REPL in the context of an arbitrary module that is already loaded (so that this module's globals are your globals). Currently, Debug Console always evaluates things in the context of the stack frame that you have selected in the Stack pane, so unless module's top level is actively executing, there's no way to eval things in it without explicitly using exec() in the console.

@oplatek
Copy link

oplatek commented Dec 8, 2023

@int19h thank you for replying and mentioning Debug Console.
It seems to do exactly what I need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants