hey guys. so we got our own lldb front end (lldbg) that's working nicely, but it'd be great to have web assembly debugging directly in code::blocks. they only have gdb debug interface support at the moment as far as I can tell, not lldb.
so, the question is : does wasmtime debug interface interoperability work with gdb as well as lldb ?
(alternative being upgrade code::blocks to support lldb but that's a bigger job)
found this : https://forums.codeblocks.org/index.php?topic=24877.0
dont know if that work's progressed.
apologies. gpt-4 says this is possible.
is there lldb support in codeblocks for debugging please
Generating answers for you…
Yes, Code::Blocks supports LLDB for debugging.
You can use the LLDB debugger in Code::Blocks by following these steps:
Go to the “Settings” menu and select “Debugger”.
Select “LLDB Debugger” from the drop-down menu.
Click on the “OK” button to save your changes.
After that, you can use LLDB for debugging your code in Code::Blocks.
cool, if it works - will try later.
LLDB supports the GDB jit interface according to https://www.llvm.org/docs/DebuggingJITedCode.html It isn't clear to me from that page if it is something that is enabled by default or needs to be explicitly enabled though.
Also be aware of https://github.com/bytecodealliance/wasmtime/issues/3999
so wasmtime emits gdb compatible debug & lldb can be used bcoz its gdb compatible ?
ie. we have no specific dependency on lldb & simply use it by preference ?
thanks. this is good news as reconfiguring debugger in code blocks looks to be a pain.
the other issue, with our current toolchain (llvm 16.0.1), I dont have any currently open issues, including the debugger, though to be fair, it hasn't been tested much yet.
Last updated: Dec 23 2024 at 13:07 UTC