mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
test_exception fixes.
This commit is contained in:
parent
fef15c91c9
commit
b6d23c4356
2 changed files with 93 additions and 116 deletions
|
|
@ -92,6 +92,7 @@ class DebugStartBase(object):
|
|||
steppingResumesAllThreads=None,
|
||||
rules=None,
|
||||
successExitCodes=None,
|
||||
breakOnSystemExitZero=None,
|
||||
pathMappings=None,
|
||||
):
|
||||
if logToFile:
|
||||
|
|
@ -149,6 +150,9 @@ class DebugStartBase(object):
|
|||
if successExitCodes:
|
||||
args["successExitCodes"] = successExitCodes
|
||||
|
||||
if breakOnSystemExitZero:
|
||||
args["debugOptions"] += ["BreakOnSystemExitZero"]
|
||||
|
||||
if pathMappings is not None:
|
||||
args["pathMappings"] = pathMappings
|
||||
|
||||
|
|
@ -175,7 +179,6 @@ class Launch(DebugStartBase):
|
|||
sudo=None,
|
||||
waitOnNormalExit=None,
|
||||
waitOnAbnormalExit=None,
|
||||
breakOnSystemExitZero=None,
|
||||
console="externalTerminal",
|
||||
internalConsoleOptions="neverOpen",
|
||||
**kwargs
|
||||
|
|
@ -214,9 +217,6 @@ class Launch(DebugStartBase):
|
|||
if waitOnAbnormalExit:
|
||||
debug_options += ["WaitOnAbnormalExit"]
|
||||
|
||||
if breakOnSystemExitZero:
|
||||
debug_options += ["BreakOnSystemExitZero"]
|
||||
|
||||
target_str = target
|
||||
if isinstance(target, py.path.local):
|
||||
target_str = target.strpath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue