Skip to content

Commit 12551f3

Browse files
committed
merge #459 Add disableOptimisticBPs option to debug configuration
1 parent f4eec0b commit 12551f3

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Bug-fixes within the same version aren't needed
1010
* add folder status bar support for multi-root projects - connectdotz
1111
* paying down some tech debt, see PR#447 for detail.
1212
13+
* Add disableOptimisticBPs option to debug configuration. Fixes #400 - blikblum
1314
1415
* Adds "Jest: Restart Runner" command - vdh
1516

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@
185185
"args": ["--runInBand"],
186186
"cwd": "^\"\\${workspaceFolder}\"",
187187
"console": "integratedTerminal",
188-
"internalConsoleOptions": "neverOpen"
188+
"internalConsoleOptions": "neverOpen",
189+
"disableOptimisticBPs": true
189190
}
190191
},
191192
{
@@ -200,7 +201,8 @@
200201
"cwd": "^\"\\${workspaceFolder}\"",
201202
"console": "integratedTerminal",
202203
"protocol": "inspector",
203-
"internalConsoleOptions": "neverOpen"
204+
"internalConsoleOptions": "neverOpen",
205+
"disableOptimisticBPs": true
204206
}
205207
},
206208
{
@@ -215,7 +217,8 @@
215217
"cwd": "^\"\\${workspaceFolder}\"",
216218
"console": "integratedTerminal",
217219
"protocol": "inspector",
218-
"internalConsoleOptions": "neverOpen"
220+
"internalConsoleOptions": "neverOpen",
221+
"disableOptimisticBPs": true
219222
}
220223
}
221224
]

src/DebugConfigurationProvider.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
5050
// https://github.com/Microsoft/vscode-recipes/tree/master/debugging-jest-tests#configure-launchjson-file-for-your-test-framework
5151

5252
// create-react-app config according to:
53-
// https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#debugging-tests-in-visual-studio-code
53+
// https://facebook.github.io/create-react-app/docs/debugging-tests#debugging-tests-in-visual-studio-code
5454

5555
// tslint:disable no-invalid-template-strings
5656
const debugConfiguration: vscode.DebugConfiguration = {
@@ -61,6 +61,7 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
6161
cwd: '${workspaceFolder}',
6262
console: 'integratedTerminal',
6363
internalConsoleOptions: 'neverOpen',
64+
disableOptimisticBPs: true,
6465
}
6566

6667
const testCommand = folder && getTestCommand(folder.uri.fsPath)

0 commit comments

Comments
 (0)