In python it’s extremely easy to set a breakpoint. You just import pdb and then write pdb.set_trace() in your code. Once you hit a breakpoint you can single set with n / s etc.
Debugger.jl has the @bp macro to programmatically insert a breakpoint, but for some reason, this doesn’t work in compiled mode, and my code is too slow when interpreted. Why can’t this (or something like it) work in compiled mode given that you are changing the code to insert the breakpoint? It’s ok if breakpoints added with “bp add” only work in interpreted mode, but surely if I’m editing my code to add @bp, that could break into the debugger even in compiled mode because @bp (or something like it) gets to insert stuff into the compiled code.
How hard would this be to add to Debugger.jl? This would dramatically improve the debugabilty of Julia code since you can have it run fast until you hit a breakpoint you’ve manually added and then single step in interpreted mode until you’ve worked out the issue.