How to move one step back in VS Code debugging mode in Python?

Viewed 4091

The question says it all. Basically, I am looking for the opposite button to the Step over button in VS code debugger (more precisely, the opposite button to the underlined button).

2 Answers

You can change next executing line with Debug: Jump to Cursor command.

  1. Set breakpoint
  2. Wait for code to stop
  3. Click on desired line
  4. Open command list (default is ctrl + shift + p)
  5. Use Debug: Jump to Cursor
  6. Enjoy enter image description here

Note: you can bind this action to some hotkey like (ctrl + f8) doc

if it is possible to run you code in a [.ipynb]jupyter notebook file, there is such a functionality in the google colab.

  • use %%debug magic command and command up in the debugger prompt.
Related