Use the develoop feature to loop over functions
masterThe develoop feature allows you to create a live development environment for specific functions. When a function is entered, its output is captured, and the program waits for input. If the source code is modified, the function re-runs automatically without restarting the whole program.
Loop over a function
Use --loop <function_name> or --loop <module_name>:<function_name>.
Loop only on exceptions
Use --xloop <function_name> to only trigger the loop if the function raises an exception.
Develoop Interface Commands
r: Manually re-run the loop (can be done during a run).a: Abort the current run (useful for infinite loops).c: Exit the loop and continue the program normally.q: Quit the program.
Handling stdin and breakpoints
The default interface does not support stdin or breakpoint(). To use them, decorate your function with @__.loop(interface="basic").
# Loop over a function
jurigged --loop function_name script.py
jurigged --loop module_name:function_name script.py
# Only stop on exceptions
jurigged --xloop function_name script.py