Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Enable setting new breakpoints after a failed one
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed May 14, 2018
1 parent c8137c2 commit 6dfbfec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ class GoDebugSession extends DebugSession {
}).then(newBreakpoints => {
// Unwrap breakpoints from v2 apicall
let adaptedBreakpoints = newBreakpoints.map((bp, i) => {
return bp.Breakpoint;
return bp ? bp.Breakpoint : null;
});
let breakpoints = adaptedBreakpoints.map((bp, i) => {
if (bp) {
Expand Down

0 comments on commit 6dfbfec

Please sign in to comment.