vmware-tanzu / tanzu-toolkit-for-visual-studio

Apache License 2.0
10 stars 3 forks source link

Remote debugging fails when switching between apps in different spaces to debug #346

Closed andrew-woosnam closed 2 years ago

andrew-woosnam commented 2 years ago

To reproduce:

  1. push a remotely debuggable app to 2 different spaces
  2. remote debug app 'remote-debug-app-1' running in space 1
  3. detach
  4. try remote debugging app 'remote-debug-app-2' running in space 2
  5. notice error in Debug Adapter Host logs (forwarded from cf.exe): "App 'remote-debug-app-2' not found."
1> DebugAdapterHost version: 17.2.60329.1 commit:6c15e38e5506370b02ec24a0a581027b93d45383
 1> Starting 'c:\users\awoosnam\appdata\local\microsoft\visualstudio\17.0_a4444530exp\extensions\vmware tanzu .net experience\tanzu toolkit for visual studio 2022\1.0.0\Resources\cf7.exe' with arguments 'ssh remote-debug-app -c "/tmp/lifecycle/shell /home/vcap/app 'bash -c \"/home/vcap/app/vsdbg/vsdbg --interpreter=vscode\"'"'
 1> [DebugAdapter] --> C (initialize-1): {"type":"request","command":"initialize","arguments":{"pathFormat":"path","clientID":"visualstudio","clientName":"Visual Studio","adapterID":"coreclr","locale":"en-US","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsRunInTerminalRequest":true,"supportsMemoryReferences":true,"supportsProgressReporting":true,"SupportsMessageBox":true,"supportsHandshakeRequest":true,"supportsVsAdditionalBreakpointBinds":true,"supportsHitCountsChange":true,"supportsVsCustomMessages":true,"supportsVariableEnumerators":true},"seq":1}
 1> WARNING: Request 'initialize-1' has not received a response within 1000 ms!
 1> ERROR: Debug adapter error output: App 'remote-debug-app' not found.