I know that some languages, like .NET (I have some experience doing this on Visual Studio), there is a way to stop the execution on a break points and change the nexts lines of code, change value of variables or even change the execution line without reloading the application.
This is pretty usefull, since you can write your code while it's executing, specilly for non linear codes, where some functions are called in events, like django or flask aplications.
I would like to know if there is a way (if possible using vscode) to do the same in python.
Yes, you need to add this in the launch.json file:
"autoReload": {
"enable": true
}
You can refer to the official docs for more information.
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