pyroscope icon indicating copy to clipboard operation
pyroscope copied to clipboard

Provide debug info in docker images

Open simonswine opened this issue 1 year ago • 2 comments

Today I had found it fairly limiting not being able to use dlv in one of our production instances.

I propose to either:

  • Remove stripping of debug infos by default
  • Provide separate .debug files with the infos attached (https://github.com/kubernetes/kubernetes/issues/73986#issuecomment-807821958)

simonswine avatar Jul 05 '24 21:07 simonswine

I was under impression it does not work well on non debug (i.e. no -gcflags="all=-N -l" ) binaries Did you ever use it on non debug binaries? I like the idea of having separate debug files. In the past I've deployed a custom debug image couple of times in gl dev cluster for debugger (gdb :smile: ) usage purposes.

korniltsev avatar Jul 06 '24 10:07 korniltsev

Maybe this should be a separate issue, but I'l just dump it here. Just had some ideas for debugger experience improvements:

  • make docker-image/pyroscope/build-debug could add -gcflags="all=-N -l" for improved debugging experience
  • Could be nice to optionally have make deploy-micro-services / make deploy use debug docker images
  • Could be nice to have a helm knob to expose delve 40000 port

korniltsev avatar Jul 24 '24 13:07 korniltsev