Skip to content

Commit 1f06361

Browse files
committed
Debug view should show when a breakpoint is hit
fixes microsoft#119646
1 parent 770ba2b commit 1f06361

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/contrib/debug/browser/debug.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ configurationRegistry.registerConfiguration({
414414
},
415415
'debug.openDebug': {
416416
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
417-
default: 'openOnFirstSessionStart',
417+
default: 'openOnDebugBreak',
418418
description: nls.localize('openDebug', "Controls when the debug view should open.")
419419
},
420420
'debug.showSubSessionsInToolBar': {

src/vs/workbench/contrib/debug/browser/debugService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ export class DebugService implements IDebugService {
501501

502502
const openDebug = this.configurationService.getValue<IDebugConfiguration>('debug').openDebug;
503503
// Open debug viewlet based on the visibility of the side bar and openDebug setting. Do not open for 'run without debug'
504-
if (!configuration.resolved.noDebug && (openDebug === 'openOnSessionStart' || (openDebug === 'openOnFirstSessionStart' && this.viewModel.firstSessionStart))) {
504+
if (!configuration.resolved.noDebug && (openDebug === 'openOnSessionStart' || (openDebug !== 'neverOpen' && this.viewModel.firstSessionStart))) {
505505
await this.viewletService.openViewlet(VIEWLET_ID);
506506
}
507507

0 commit comments

Comments
 (0)