Debugging does not work in vscode for 1 line of code of Zygote

Zygote does a bunch of finicky things with the compiler that trip up the VS Code debugging. This means, unfortunately, that print debugging is probably the path of least resistance. If you are feeling up for learning the Debugger.jl CLI however (this is what VS Code uses under the hood), I’ve generally found it to be less error prone on Zygote code than the VS Code UI.

1 Like