Python has the flag -i, that allows interacting with the script after executing it in the terminal, e.g. python script.py -i
. Usually how I do this is in VC Code
- Run the script with "the play button"
- Add "-i" to the terminal command and run again
Obviously this is not ideal, so I was wondering if there is a way do this with a single command or a way perhaps add more options under "the play button" menu where you can switch between running the script and debugging.
I'm also aware of the interactive mode, but that requires installing IPython and I don't want to go that way.