|
|
|
|
|
by db65edfc7996
1682 days ago
|
|
Python programmer not accustomed to a "real" REPL. My closest experience would be Jupyter notebooks, where dangling state is more a liability than an asset. > ...inspected the stack, patch the function, and then had it pick back up... After you edit the live state of the program, how do you translate that into code sitting in source control? Do you save this blob of memory and pass that down through generations? |
|
2. Modify the source code containing the function.
2a. Save the file.
3. Copy function definition to the debugger’s repl, and evaluate it.
4. Resume the system from frame that calls the function.
But yes, you must be diligent about making sure the source files contain the code that is actually running, but that’s not much different than artifact tracking.