mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix #92: Debugging as sudo fails to terminate the debugger when you stop
Apply sudo to debugpy.launcher, rather than the debuggee itself.
This commit is contained in:
parent
2d35573eda
commit
32c00bc85c
5 changed files with 47 additions and 19 deletions
|
|
@ -492,8 +492,7 @@ class Session(object):
|
|||
env = request("env", json.object(unicode))
|
||||
try:
|
||||
exe = args.pop(0)
|
||||
assert not len(self.spawn_debuggee.env)
|
||||
self.spawn_debuggee.env = env
|
||||
self.spawn_debuggee.env.update(env)
|
||||
self.spawn_debuggee(args, cwd, exe=exe)
|
||||
return {}
|
||||
except OSError as exc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue