-
Notifications
You must be signed in to change notification settings - Fork 68
Debugging fails with timeout when using conda run #1944
Comments
I believe that this is fundamentally the same problem as #1930, the fix for which has only just went in. Can you try it with ptvsd v5.0.0a8, and see if that fixes it? |
Actually, looking at the logs, I don't think even that would help. Not even the parent PID matches what we spawned:
Looking at the source code for So it's the same fundamental problem, but the fix for #1930 won't work. It seems that we'll have to remove PID validation entirely, and just assume that the first connection that comes in is the launched process, regardless of which PID it reports. :/ |
Do not validate PID of the debuggee when debug server connects while handling "launch". Restrict "launch" to the first session with no server connections.
@karthiknadig
Environment data
Steps to reproduce:
launch.json
.DebugAdapterFactory - experiment
andPtvsdWheels37 - experiment
. Remove all references in the resolver to"pythonPath"
as it's deprecated.Expected behavior
Debugging works. And the command should begin with
conda run -n base python ...
.Actual behavior
The command:
Debugging fails:
Log files
debugger.vscode_dbc3a284-d158-4e8b-9cfc-ddd709011d6b.log
ptvsd.adapter-17808.log
ptvsd.launcher-18848.log
ptvsd.server-17816.log
The text was updated successfully, but these errors were encountered: