Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
LANG: Note about Cygwin GDB
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-medeiros committed Jul 10, 2015
1 parent f0a9ea3 commit 2e13545
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions documentation/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ GDB debugger integration is achieved by using the CDT plugins. To configure glob
**Note that for debugging to work**, the program must be compiled with debug symbols information, and those debug symbols must be on a format that GDB understands (DWARF3). Otherwise you will get GDB error messages such "(no debugging symbols found)" or "file format not recognized".

With Go, debugging information is already added by default when compiling, but certain inline optimizations might confuse the debugger. To disable the, use them `-gcflags "-N -l"` flags. For more info see: http://golang.org/doc/gdb.

**Windows note:** Using Cygwin GDB doesn't work very well, if at all. The recommended way to debug in Windows is to use the GDB of [mingw-w64](http://mingw-w64.org/), or the one of [TDM-GCC](http://tdm-gcc.tdragon.net/).

0 comments on commit 2e13545

Please sign in to comment.