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/CAOyqgcUN%2B%3DHLPVqVZtiLiPDvdPLWNUvxN9S8yQ8Z3p7DhwyfrQ%40mail.gmail.com.

Reply via email to