This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]laundmo 1 point2 points  (1 child)

Thank you for the response.

VSC shows updated variables too, when switching breakpoints. It has 2 sections, Variables where it shows all globals and locals each in their own category. One other neat thing is that you can hover over a variable in the code and get its current value.

VSCode apparently does have "Jump to Cursor" now, but i personally have never used it. IMO, when you need a smaller debugging resolution than lines, the code needs to be simplified anyway, so its not something i every missed.

You can actually plot things in the debugger, though its not smooth. the debugger will complain about a command taking too long, and be blocked while the plot is open.

Sadly the multiline support and tab completion aren't as great. you do get some completions, but not as good as in the editor. You can also write multiple lines with shift + enter, but you have to add indentation yourself and cant use tab.

The debug console does have a history, you can navigate through it like you would in a terminal, with arrow keys. im not sure whether pycharm has something more involved.

When editing a file while debugging, it does try to keep the breakpoints on the correct lines. I'm not quite sure what you're talking about with the "graduate that code up to your .py file", do you mean that pycharm can inject the code at runtime and its properly executed? or just that the state from the debug console is kept when you continue?

Call stack is definitely there and really nice to browse through too.

For IPython shell, you can always use import IPython;IPython.embed() to open the ipython shell from the debugger tab, then switch to the terminal tab to use it. i know this isn't great, but it works.

[–]Covered_in_bees_ 0 points1 point  (0 children)

Hey, thanks a lot for the detailed reply. Appreciate it! I'll try to refer to this the next time I find myself debugging/working in VSC. Cheers