Hi all,
How does one attach a debugger and actually debug cranelift (lets say, from running clif-util on some clif IR) to step through the compiler? I haven't been able to find any documentation about setting this up (though I very likely missed something).
Is it as straightforward as attaching to the clif-util bin?
Is it as straightforward as attaching to the clif-util bin?
It should be if you only want to debug compilation and not execution. If you want to debug execution, be aware that clif-util doesn't generate any debuginfo, so you can only step through raw assembly instructions.
Last updated: Dec 23 2024 at 12:05 UTC