We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 689e2fd commit 888f86fCopy full SHA for 888f86f
1 file changed
src/vs/workbench/contrib/debug/browser/debugSession.ts
@@ -381,6 +381,10 @@ export class DebugSession implements IDebugSession {
381
if (this.raw) {
382
const source = this.getRawSource(uri);
383
const response = await this.raw.breakpointLocations({ source, line: lineNumber });
384
+ if (!response.body || !response.body.breakpoints) {
385
+ return [];
386
+ }
387
+
388
const positions = response.body.breakpoints.map(bp => ({ lineNumber: bp.line, column: bp.column || 1 }));
389
390
return distinct(positions, p => `${p.lineNumber}:${p.column}`);
0 commit comments