Re:A Julia Interpreter and Debugger
by saagarjha on Thursday March 21, 2019 @04:36PM
(#19457032)
Is there no way to compile Julia with debugging symbols and frame pointers?
[ Parent
| on HN ]
Re:A Julia Interpreter and Debugger
by StefanKarpinski on Thursday March 21, 2019 @09:01PM
(#19458827)
If you want to debug Julia itself, you can use gdb/lldb on it. That plus using the `jl_` function to dump values gets you a pretty decent debugger if you're comfortable in gdb/lldb, but it's not an experience that most Julia users would be happy with and you cannot evaluate code in the current stack frame's context or set breakpoints with Julia expressions as conditions. Debugger.jl lets you do all of that.
It does by default so you can use gdb/lldb and perf on Julia code.
Re:A Julia Interpreter and Debugger
by eigenspace on Thursday March 21, 2019 @04:52PM
(#19457198)
Something like this is currently being attempted with MagneticReadHead.jl[1] which also just saw its first beta release. It's a pretty cool tool, using Cassette to essentially do an extra compiler pass, descending into code from other modules and inject the appropriate debugging tools.
Re:A Julia Interpreter and Debugger
by StefanKarpinski on Thursday March 21, 2019 @04:58PM
(#19457249)
MagneticReadHead is a bit different than what I think your parent post was asking about—that's more what Gallium was. The breakdown of approach is:
1. Gallium was a traditional gdb/lldb-style debugger
2. Debugger.jl is a pure interpreting debugger
3. MagneticReadHead works by compiling a modified version of the code you want to debug that is instrumented to add debugging hooks (this is different from how gdb/lldb work).
Re:A Julia Interpreter and Debugger
by eigenspace on Thursday March 21, 2019 @05:08PM
(#19457336)
Oh I misread the parent. My bad.