具有Golang的LiteIDE GDB

I installed LiteIDE and GDB. I opened my Go project in LiteIDE and added a breakpoint to some point in the code. Then i switched back to terminal and ran the project binary that was supposed to envoke the breakpoint and nothing happened. What am i doing wrong?

You have to actually launch the executable from the IDE for breakpoints to mean anything.

Also keep in mind that gdb is mostly meaningless with Go 1.3.x and even more so with 1.4 (dev).

From https://golang.org/doc/gdb:

GDB does not understand Go programs well. The stack management, threading, and runtime contain aspects that differ enough from the execution model GDB expects that they can confuse the debugger, even when the program is compiled with gccgo. As a consequence, although GDB can be useful in some situations, it is not a reliable debugger for Go programs, particularly heavily concurrent ones. Moreover, it is not a priority for the Go project to address these issues, which are difficult. In short, the instructions below should be taken only as a guide to how to use GDB when it works, not as a guarantee of success.

In time, a more Go-centric debugging architecture may be required.

I use this package https://github.com/gostart/debug/ and so far it is the best solution that I have found. Hope this helps.