Wait for source maps when setting TypeScript breakpoints (#32954)
Closes #ISSUE Release Notes: - debugger: Fix setting breakpoints in typescript code when debugging compiled javascript
This commit is contained in:
parent
d0e909e58d
commit
74aa227c09
1 changed files with 18 additions and 0 deletions
|
@ -99,6 +99,14 @@ impl JsDebugAdapter {
|
||||||
configuration
|
configuration
|
||||||
.entry("console")
|
.entry("console")
|
||||||
.or_insert("externalTerminal".into());
|
.or_insert("externalTerminal".into());
|
||||||
|
|
||||||
|
configuration.entry("sourceMaps").or_insert(true.into());
|
||||||
|
configuration
|
||||||
|
.entry("pauseForSourceMap")
|
||||||
|
.or_insert(true.into());
|
||||||
|
configuration
|
||||||
|
.entry("sourceMapRenames")
|
||||||
|
.or_insert(true.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(DebugAdapterBinary {
|
Ok(DebugAdapterBinary {
|
||||||
|
@ -269,6 +277,16 @@ impl DebugAdapter for JsDebugAdapter {
|
||||||
"description": "Use JavaScript source maps if they exist",
|
"description": "Use JavaScript source maps if they exist",
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
|
"pauseForSourceMap": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Wait for source maps to load before setting breakpoints.",
|
||||||
|
"default": true
|
||||||
|
},
|
||||||
|
"sourceMapRenames": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether to use the \"names\" mapping in sourcemaps.",
|
||||||
|
"default": true
|
||||||
|
},
|
||||||
"sourceMapPathOverrides": {
|
"sourceMapPathOverrides": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Rewrites the locations of source files from what the sourcemap says to their locations on disk",
|
"description": "Rewrites the locations of source files from what the sourcemap says to their locations on disk",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue