On Thu, Jul 8, 2021 at 8:41 PM 董⼀峰 <dongyifeng.a...@bytedance.com> wrote: > > Thanks for replying. > So golang only supports debugging optimized golang runtime?
Well, Go requires that the runtime package be built with optimization (when using the gc compiler, which is the default). So, yes, when running runtime code under the debugger you will be looking at optimized code. > It is weird to me as a C++ developer. (T.T) There are many differences between Go and C++. 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/CAOyqgcWV%3DbOw3qARLKzXGp66AdFxXzVpzSuCPi%3DehPB-FMuazg%40mail.gmail.com.