Add breakOnSystemExit setting to launch/attach configuration schema - #1078
Merged
rchiodo merged 3 commits intoJul 29, 2026
Merged
Conversation
Exposes debugpy's breakOnSystemExit option (microsoft/debugpy#2017) in the extension's launch.json/attach configuration schema and TypeScript debug config types. Accepts an array of exit codes and/or inclusive {from,to} ranges to control which SystemExit codes cause the debugger to break. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 24c2d34b-15f0-45d2-bd59-8ee042269d20
rchiodo
enabled auto-merge (squash)
July 29, 2026 17:02
bschnurr
previously approved these changes
Jul 29, 2026
Describe the default as an ignore-list ({0, None}, plus 3 under Django/Flask) that breaks on any other code when uncaught-exception breaking is enabled, rather than the looser 'break on all non-zero exit codes'.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 24c2d34b-15f0-45d2-bd59-8ee042269d20
StellaHuang95
approved these changes
Jul 29, 2026
bschnurr
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exposes debugpy's new
breakOnSystemExitoption (microsoft/debugpy#2017) in the extension'slaunch.json/ attach configuration schema, as requested in microsoft/debugpy#1591.What
breakOnSystemExitattribute to both thelaunchandattachconfigurationAttributesinpackage.json(IntelliSense + validation inlaunch.json).breakOnSystemExit?: (number | SystemExitRange)[]field andSystemExitRangetype toICommonDebugArgumentsinsrc/extension/types.ts.Behavior
breakOnSystemExitaccepts an array of exit codes and/or inclusive{ "from", "to" }ranges, controlling whichSystemExitcodes cause the debugger to break:[]— never break onSystemExit[1, 2]— break only on codes 1 and 2[{ "from": 3, "to": 100 }]— break on codes 3-100 (inclusive)The value is passed straight through to debugpy, which parses it; no config-resolver changes are required.
Testing
tsc --noEmitpasses with no errors.package.jsonvalidated as well-formed JSON.