Skip to content

Commit 51f5a3a

Browse files
positakimadeline
andauthored
Explicitly add "justMyCode": "true" to all launch.json configurations (#18471)
* Explicitly add `"justMyCode": "true"` to all `launch.json` configurations Fixes #18389. * Respond to maintainer feedback * Update news/2 Fixes/18471.md Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com> Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com>
1 parent 2b431b3 commit 51f5a3a

18 files changed

Lines changed: 27 additions & 5 deletions

news/2 Fixes/18471.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Explicitly add `"justMyCode": "true"` to all `launch.json` configurations. (Thanks [Matt Bogosian](https://github.com/posita))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@
12101210
},
12111211
"justMyCode": {
12121212
"default": true,
1213-
"description": "Debug only user-written code.",
1213+
"description": "If true, show and debug only user-written code. If false, show and debug all code, including library calls.",
12141214
"type": "boolean"
12151215
},
12161216
"listen": {

src/client/debugger/extension/configuration/providers/djangoLaunch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class DjangoLaunchDebugConfigurationProvider implements IDebugConfigurati
3838
program: program || defaultProgram,
3939
args: ['runserver'],
4040
django: true,
41+
justMyCode: true,
4142
};
4243
if (!program) {
4344
const selectedProgram = await input.showInputBox({

src/client/debugger/extension/configuration/providers/fastapiLaunch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export class FastAPILaunchDebugConfigurationProvider implements IDebugConfigurat
3131
module: 'uvicorn',
3232
args: ['main:app'],
3333
jinja: true,
34+
justMyCode: true,
3435
};
3536

3637
if (!application) {

src/client/debugger/extension/configuration/providers/fileLaunch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export class FileLaunchDebugConfigurationProvider implements IDebugConfiguration
2424
name: DebugConfigStrings.file.snippet.name(),
2525
type: DebuggerTypeName,
2626
request: 'launch',
27-
2827
program: '${file}',
2928
console: 'integratedTerminal',
29+
justMyCode: true,
3030
};
3131
Object.assign(state.config, config);
3232
}

src/client/debugger/extension/configuration/providers/flaskLaunch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class FlaskLaunchDebugConfigurationProvider implements IDebugConfiguratio
3535
},
3636
args: ['run', '--no-debugger'],
3737
jinja: true,
38+
justMyCode: true,
3839
};
3940

4041
if (!application) {

src/client/debugger/extension/configuration/providers/moduleLaunch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class ModuleLaunchDebugConfigurationProvider implements IDebugConfigurati
2121
type: DebuggerTypeName,
2222
request: 'launch',
2323
module: DebugConfigStrings.module.snippet.default(),
24+
justMyCode: true,
2425
};
2526
const selectedModule = await input.showInputBox({
2627
title: DebugConfigStrings.module.enterModule.title(),

src/client/debugger/extension/configuration/providers/pidAttach.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export class PidAttachDebugConfigurationProvider implements IDebugConfigurationP
2424
name: DebugConfigStrings.attachPid.snippet.name(),
2525
type: DebuggerTypeName,
2626
request: 'attach',
27-
2827
processId: '${command:pickProcess}',
28+
justMyCode: true,
2929
};
3030
Object.assign(state.config, config);
3131
}

src/client/debugger/extension/configuration/providers/pyramidLaunch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class PyramidLaunchDebugConfigurationProvider implements IDebugConfigurat
4040
args: [iniPath || defaultIni],
4141
pyramid: true,
4242
jinja: true,
43+
justMyCode: true,
4344
};
4445

4546
if (!iniPath) {

src/client/debugger/extension/configuration/providers/remoteAttach.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class RemoteAttachDebugConfigurationProvider implements IDebugConfigurati
3535
remoteRoot: '.',
3636
},
3737
],
38+
justMyCode: true,
3839
};
3940

4041
const connect = config.connect!;

0 commit comments

Comments
 (0)