You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to attach then you must manually adjust the "Python: Attach" launch config (or make a new one) with the appropriate information. However, it is unclear exactly what information the user is meant to provide. Any help is out-of-band since the launch config doesn't have any comments (I blame JSON). Here's what a user may specify:
localRoot - ???
remoteRoot - ???
port - presumably the port to which VSC will connect (how?)
secret - ???
host - presumably where the process is running; maybe where something else is running instead (e.g. a debugger tied to the target process)
This may lead to at least the following questions for a user:
what are secret, localRoot and remoteRoot? (I can guess at "secret", but have no clue on the other two)
host and port imply the debugger will attach via a network socket, so...
what has to be running on the other end? (e.g. ssh, https, detached debugger)
did the target process need to be started in a special way (e.g. via the debugger and then detached)?
what if I want to debug an existing process that wasn't started in a special way?
Indirectly:
what is attach going to do? (connect to a detached debugger? start a debugger in an already running process?)
how will VSC reach the host (if not localhost)? (e.g. ssh, http)
Documentation on this would be great (maybe I missed it). However, it won't be quite as useful for the user trying to use attach since the launch config can't point them there. I'm not sure we can do much about that.
Uh oh!
There was an error while loading. Please reload this page.
If you want to attach then you must manually adjust the "Python: Attach" launch config (or make a new one) with the appropriate information. However, it is unclear exactly what information the user is meant to provide. Any help is out-of-band since the launch config doesn't have any comments (I blame JSON). Here's what a user may specify:
This may lead to at least the following questions for a user:
secret
,localRoot
andremoteRoot
? (I can guess at "secret", but have no clue on the other two)host
andport
imply the debugger will attach via a network socket, so...pid
option in the config) (see Support debugging a "pristine" process. #1381)Indirectly:
attach
going to do? (connect to a detached debugger? start a debugger in an already running process?)Documentation on this would be great (maybe I missed it). However, it won't be quite as useful for the user trying to use
attach
since the launch config can't point them there. I'm not sure we can do much about that.(this is related to #1378)
Environment data
Actual behavior
see above
Expected behavior
see above
Steps to reproduce:
n/a
Logs
n/a
The text was updated successfully, but these errors were encountered: