I am unsure how to ask this but here goes: I am having difficulty debugging my code. Coming from a MATLAB background, I am used to a very smooth debugging experience. But with Julia, I’ve tried using the Juno debugger and it’s very slow. So mostly I end up copy pasting functions in a new file, removing the top and bottom lines (
function x(a,b) and the
end statement) and then set inputs manually and go line by line until I get to the point that needs to be debugged. Checking loops with print statements, etc. Ultimately I paste the correct code into my module/package and restart Julia and test it.
It gets the job done but very messy, and I feel there must be better ways of debugging. Am I just doing it wrong? What are some good debugging workflows?