Thanks for replying.
So golang only supports debugging optimized golang runtime?
It is weird to me as a C++ developer.  (T.T)

Yifeng
On Fri, Jul 9, 2021, 11:38 <i...@golang.org> wrote:
On Thu, Jul 8, 2021 at 7:43 AM Axis <dongyifeng.a...@bytedance.com> wrote:
> > I am new in golang community. > I just want to build a debug golang to
do better debug. > But when I want to build debug golang using the
following instructions > > " > export BOOT_GO_GCFLAGS="-N -l" > export
BOOT_GO_LDFLAGS="-w" > ./make.bash > " > > golang just print a error
message: > " > compile: cannot disable optimizations while compiling
runtime > " > > It confused me, dose anyone tell me how to build debug
golang? You can't build a debugging version of the runtime package. Sorry.
You can build debugging versions of most other standard library packages,
but not the runtime package. This doesn't mean that it is impossible to use
a debugger, it just means that it is harder. Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOCAmpRgOHwQa77LGvk7MGDRHOgH_1aqduvH9HWJ8t4tMvNgAw%40mail.gmail.com.

Reply via email to