-
Notifications
You must be signed in to change notification settings - Fork 287
Cannot set breakpoints in editor #135
Comments
My error log has a lot of these:
amb
I'm not entirely sure how to find the 'configuration log' |
The GOARCH problem was simply that I hadn't set GOARCH to anything other than |
As described in https://github.com/GoClipse/goclipse/blob/master/CONTRIBUTING.md , the configuration is at Also, if you open the dialog at |
Nevermind, I was able to replicate it. |
Thanks - is there some way to test this here without a local build? (e.g. a manual file edit) |
I've put out a bugfix release with this fix: https://github.com/GoClipse/goclipse/releases/tag/v0.11.1 |
Thanks! I can can confirm that now works. |
[ Originally reported at:
http://stackoverflow.com/questions/31056007/enabling-breakpoints-in-goclipse
where https://github.com/bruno-medeiros (who is a contributor) suggested I report here]
I'm trying to get debugging of go programs working in eclipse Luna with goclipse v0.11.0 on OS-X 10.9.5. I am using GNU gdb (GDB) 7.9.1 from brew, and go1.4.2.
I successfully installed and code-signed gdb using instructions here:
http://ntraft.com/installing-gdb-on-os-x-mavericks/
I am building my go program with
-gcflags "-N -l"
and I can successfully debug it at the command line, including setting breakpoints at go functions and stepping through them with the gdb command line, with source appearing as it should.However, in goclipse I cannot set a breakpoint at all, because the 'toggle breakpoint' item on the menu is greyed out, and the 'Breakpoint Types' list says 'none available'.
If I select 'Stop on Startup at' 'main', then I can step through assembler, which is unhelpful, but proves gdb is being used.
If I keep the above option set, wait until the program hits the main breakpoint, and type (at the gdb console within eclipse) break main.foo, then cont, then a breakpoint is set in the right place, and I can step through things in the Eclipse IDE. Thus it appears the only issue is setting the breakpoints in the IDE.
The go program concerned is a single file and it works under command line gdb, and I have deleted the binary and started afresh, so this is not a 'need a rebuild' issue.
There is a screenshot at the StackExchange post linked above.
The text was updated successfully, but these errors were encountered: