Home > front end >  How to restart python code from any desired point in the code after making a change during debugging
How to restart python code from any desired point in the code after making a change during debugging

Time:12-06

I'm debugging a python code in visual studio code. I have employed breakpoints. I got an error and corrected it. How can I restart from that error point? (I mean, how can I avoid re-running everything from the beginning.) Also, let me know if there is a way in any other IDE.

CodePudding user response:

This is called hot reloading, but it comes with a cost

this seems to be your best bet, https://github.com/breuleux/jurigged

also this is a duplicate of hot reloading / swapping with Python

CodePudding user response:

You need to add this in the launch.json file:

  "autoReload": {
    "enable": true
  },

You can refer to this page for more information.

  • Related