Skip to content

Commit

Permalink
Add support for breaking into the first line of code in the new debug…
Browse files Browse the repository at this point in the history
…ger (#2311)
  • Loading branch information
DonJayamanne authored Aug 1, 2018
1 parent 525ce70 commit a7908ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/2 Fixes/2299.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for breaking into the first line of code in the new debugger.
4 changes: 3 additions & 1 deletion src/client/debugger/Common/Contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export enum DebugOptions {
Pyramid = 'Pyramid',
FixFilePathCase = 'FixFilePathCase',
WindowsClient = 'WindowsClient',
UnixClient = 'UnixClient'
UnixClient = 'UnixClient',
StopOnEntry = 'StopOnEntry'
}

export interface ExceptionHandling {
Expand All @@ -60,6 +61,7 @@ export interface AdditionalLaunchDebugOptions {
debugStdLib?: boolean;
sudo?: boolean;
pyramid?: boolean;
stopOnEntry?: boolean;
}

export interface AdditionalAttachDebugOptions {
Expand Down
1 change: 1 addition & 0 deletions src/client/debugger/DebugClients/LocalDebugClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { DebugClientHelper } from './helper';
const VALID_DEBUG_OPTIONS = [
'RedirectOutput',
'DebugStdLib',
'stopOnEntry',
'BreakOnSystemExitZero',
'DjangoDebugging',
'Django'];
Expand Down
3 changes: 3 additions & 0 deletions src/client/debugger/configProviders/pythonV2Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export class PythonV2DebugConfigurationProvider extends BaseConfigurationProvide
if (debugConfiguration.debugStdLib) {
this.debugOption(debugOptions, DebugOptions.DebugStdLib);
}
if (debugConfiguration.stopOnEntry) {
this.debugOption(debugOptions, DebugOptions.StopOnEntry);
}
if (debugConfiguration.django) {
this.debugOption(debugOptions, DebugOptions.Django);
}
Expand Down

0 comments on commit a7908ab

Please sign in to comment.