IssueRaiser

Enable Python Interactive for use as a debugging console

<!-- Please search existing issues to avoid creating duplicates. --> I think this is related to / mentioned deep in the comments [here](https://github.com/microsoft/vscode-python/issues/5113#issuecomment-481300489), but I'm not convinced they're quite duplicates. <!-- Describe the feature you'd like. --> I think it'd be tremendously useful to be able to also select Python Interactive as your debug terminal, essentially launching a Python Interactive window at a breakpoint with the state of your program loaded into it, giving you access to your variables. That way plotting functions and visualizations could be made use of pretty easily as a way of debugging. This varies slightly from the current "Debug Current File in Python Interactive window", which would run your entire script in Python Interactive, in that you are still able to configure the debugger launch.json. For my specific use case it would allow passing in command line args to the script, while still being able to debug in Python Interactive. At a high level, I can see two ways of it happening: 1) Use only Python Interactive and allow it to continue execution of the code as the full debug tool. 2) Use the main debug terminal for the debugging flow, but at a breakpoint launch the Python Interactive window that opens preloaded with the current program state. At that point, the Python Interactive window is essentially detached from debugger, but at least has the data from the program at that time, allowing for more n

Posted by geophpherie on Aug 14, 2019, 7:07 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (Software)

Enable Python Interactive for use as a debugging console

geophpherieAug 14, 2019, 7:07 PM

<!-- Please search existing issues to avoid creating duplicates. --> I think this is related to / mentioned deep in the comments [here](https://github.com/microsoft/vscode-python/issues/5113#issuecomment-481300489), but I'm not convinced they're quite duplicates. <!-- Describe the feature you'd like. --> I think it'd be tremendously useful to be able to also select Python Interactive as your debug terminal, essentially launching a Python Interactive window at a breakpoint with the state of your program loaded into it, giving you access to your variables. That way plotting functions and visualizations could be made use of pretty easily as a way of debugging. This varies slightly from the current "Debug Current File in Python Interactive window", which would run your entire script in Python Interactive, in that you are still able to configure the debugger launch.json. For my specific use case it would allow passing in command line args to the script, while still being able to debug in Python Interactive. At a high level, I can see two ways of it happening: 1) Use only Python Interactive and allow it to continue execution of the code as the full debug tool. 2) Use the main debug terminal for the debugging flow, but at a breakpoint launch the Python Interactive window that opens preloaded with the current program state. At that point, the Python Interactive window is essentially detached from debugger, but at least has the data from the program at that time, allowing for more n

Comments (0)

No comments yet. Start the discussion.

Comment on this issue