solo-io / squash

The debugger for microservices
https://squash.solo.io
Apache License 2.0
1.74k stars 103 forks source link

util to discover a running container's source path #127

Open mitchdraft opened 5 years ago

mitchdraft commented 5 years ago

You may not know the source path of the running container if someone else built it

there are some tricks I use for figuring out the remote path for dlv at least, using squashctl from the command line, when you make a breakpoint, dlv reports the full path to the function it finds

Turn this into docs/utils

christian-posta commented 5 years ago

Would be cool if there is a way squash can "auto config" the remote path or at least suggest it for you when there is an error configuring the breakpoints (for example.. if using the IDE and we try set the breakpoint and it shows up as unverified, then we can log an error and also say "did you set the remote path correctly" or even better "did you set the remote path correctly? maybe you could try /foo/bar/whatever" <-- that we discovered automatically?