79158517

Date: 2024-11-05 09:50:04
Score: 0.5
Natty:
Report link

The accepted and high-rated answer doesn't work for me. While binary files generated by go build do include debug symbols, they are compiled with optimization enabled, which makes it almost impossible to debug with delve.

The following option works for me (I find it in delve document):

go build -gcflags="all=-N -l"
Reasons:
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Has code block (-0.5):
Posted by: rayx