I’d just like to have a way to easily debug code for terminal-centric people. For instance, right now I have the following situation (which is rather common, though):
- a test/example script which is added by calling
- a function
maininside the script which is called by the user
- a package which is still being tested
In python, I could just use the one-line
__import__("ipdb").set_trace() to debug any line in
script.jl or in the package.
In Julia, instead, I have to:
using Debuggerat the top of the corresponding file
@bpat the line I want to debug
@runat the line where the function is called
Obviously, when I finish debugging (or decide to debug at another point) there’s the risk to leave some unneeded line (while in python I can just remove-copy my line).
So, workflow suggestions are welcome!