I understand mechanically from here:
I can use C-x C-q
to disable read-only mode on the python file I am debugging. I can then make changes and use run
to restart the debugger.
However, I find that when I do this, whenever I edit the file that I am debugging, I am faced with the following error:
That’s all folks.... exited abnormally with code 1
How can I make changes to a file I am debugging and then re-run it without the debugger crashing? My read is that the file is read-only for a reason, and when I modify it while pdb is running I invite disaster---but this suggests to me there is an approved way to do this correctly. What is it?