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

Commit

Permalink
Improve debugging of pointer values (#2075)
Browse files Browse the repository at this point in the history
* Show pointer values in debugger

Fixes #1989

* Allow expansion of pointer variables in debugger

Ref #1989
  • Loading branch information
brycekahle authored and ramya-rao-a committed Nov 11, 2018
1 parent 2dfe6ac commit 633d1f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,8 @@ class GoDebugSession extends DebugSession {
});
}
return {
result: '<' + v.type + '>',
variablesReference: v.children[0].children.length > 0 ? this._variableHandles.create(v.children[0]) : 0
result: `<${v.type}>(0x${v.children[0].addr.toString(16)})`,
variablesReference: v.children.length > 0 ? this._variableHandles.create(v) : 0
};
}
} else if (v.kind === GoReflectKind.Slice) {
Expand Down

0 comments on commit 633d1f2

Please sign in to comment.