Python Debug Console should be exec based cli instead of eval #19813
Unanswered
kenseehart
asked this question in
Q&A
Replies: 1 comment
-
It has not been done. You would need to open feature request for each request and we can redirect it to debugpy if necessary. Do note, though, that having separate debugger and regular output is by design for a clean separation of what the program is doing and what debug information you working with (i.e. so you don't mix them up).
Documentation on how to write an extension can be found at https://code.visualstudio.com/api . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Having switched from WingIDE to vscode as my primary python development environment, I've been very pleased with vscode for a wide variety of reasons, especially the elegant plugin model. However, there is one feature set that makes WingIDE far more satisfying. That's the debug console. The basic difference is that Wing uses an exec() based cli running in the current stack context for the debug console, whereas vscode only performs single line eval(). Also, vscode doesn't redirect stdin and stderr into the debug console (but makes print() a special case). The python cli model makes it easier to modify variables in the current scope, re-raise exceptions to get to the scope you really want to be debugging, experiment with new code which can then be pasted into source code if it works, etc.
I would love to see a plugin that implements a python cli based debug console.
If this has already been done, I haven't found it. Please reply and let me know.
If this hasn't been done, I might give it a shot as my first vscode plugin. Any suggestions for a starting point to work from?
Beta Was this translation helpful? Give feedback.
All reactions