GoogleContainerTools / container-debug-support

Language-runtime support files for in-container debugging
Apache License 2.0
93 stars 25 forks source link

Launch original app command-line should debugging configuration fail #84

Closed briandealwis closed 3 years ago

briandealwis commented 3 years ago

Fixes #81

Separate the debug-launching into a preparation phase and launching phase. The preparation phase is responsible for transforming the application command-line into a debuggable launch command-line; the launching phase then invokes the resulting command-line. If the preparation phase fails, then the python launcher just invokes the original application command-line.

This PR makes a few additional changes to better support this separation:

It also adds some doc comments to describe the environment variables that allow tweaking behaviour.

cc: @peterlin741, @j-windsor