Is it possible to change the code while debugging in VSCode and that the change will take effect immediately without rerun the code? I'm using Microsoft Python extension.
To do so, open the Command Palette (Ctrl+Shift+P) and enter Preferences: Open User Settings. Then set python.defaultInterpreterPath , which is in the Python extension section of User Settings, with the appropriate interpreter.
If you're only interested in debugging a Python script, the simplest way is to select the down-arrow next to the run button on the editor and select Debug Python File in Terminal.
Visual Studio provides a first-class Python editor, including syntax coloring, autocomplete across all your code and libraries, code formatting, signature help, refactoring, linting, and type hints.
So, apparently that the closest way of doing it is to use Jupyter capabilities (that can be use via VSCode).
With Jupyter you can split your code to multiple cells and run every each one of them separately without run all from beginning.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With