Debugging go with LLDB

2,250 views
Skip to first unread message

rib...@google.com

unread,
Jan 4, 2016, 5:51:04 PM1/4/16
to golang-nuts
I've been working on adding support for Go to the LLDB debugger. The LLVM 3.8 release is coming up in a few weeks and this will be the first release to include the go support.
I'm looking for more people to try it out to see if there's any fixes needed before the code freeze.

The go support includes:
 - A go expression parser and type system. LLDB automatically switches between languages based on the current frame.
   The expression parser supports inspecting the state of the program, but doesn't yet support modifying things or calling functions.
 - Goroutines are treated as threads. The standard backtrace, breakpoint, and stepping commands should all work with goroutines.

Additionally you get all of LLDB's standard features like remote debugging, custom formatting, scripting, loading core files, etc.

To try it out you'll need a recent build of lldb from svn: http://lldb.llvm.org/build.html
(I've tested it on both OS X and Linux).

And if you're new to LLDB I created a version of the gdb debugging article:

Please try it out and let me know if you have any issues.

Leopold Freeman

unread,
Oct 27, 2016, 1:46:22 AM10/27/16
to golang-nuts, rib...@google.com
Hi,

   Can you verify that LLDB works for the project which uses third party library? Thanks. It seems LLDB doesn't work for the project which has many go source files. Check here.
Reply all
Reply to author
Forward
0 new messages