Skip to content

Commit

Permalink
Don't call setLibraryDebuggable when we're not debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed Apr 10, 2019
1 parent 9feabb1 commit 5ae4719
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug/dart_debug_impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class DartDebugSession extends DebugSession {
protected processExited = false;
public observatory?: ObservatoryConnection;
protected cwd?: string;
protected noDebug?: boolean;
public noDebug?: boolean;
private logFile?: string;
private logStream?: fs.WriteStream;
public debugSdkLibraries: boolean;
Expand Down
3 changes: 3 additions & 0 deletions src/debug/threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ export class ThreadManager {
}

private async setLibrariesDebuggable(isolateRef: VMIsolateRef): Promise<void> {
if (this.debugSession.noDebug)
return;

// Helpers to categories libraries as SDK/ExternalLibrary/not.
// Set whether libraries should be debuggable based on user settings.
const response = await this.debugSession.observatory.getIsolate(isolateRef.id);
Expand Down

0 comments on commit 5ae4719

Please sign in to comment.