Skip to content

Commit 33ddc46

Browse files
committed
providing more options to users with writing the ,x
1 parent 5da00c2 commit 33ddc46

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/GdbDebugTracker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export class GdbDebugTracker {
3030
onWillReceiveMessage: (message) => {
3131
// Check if the message is an evaluate request. If so, add property format to it
3232
if (message.command === 'evaluate' && message.type === 'request' && this.valueFormatSupported) {
33-
if (message.arguments.expression.trim().endsWith(',x')) {
33+
// Check for spaces between the expression and the ',x', for example 'myVar , x' should also be supported
34+
if (message.arguments.expression.trim().endsWith(',x') || message.arguments.expression.trim().endsWith(', x')) {
3435
message.arguments.format = {
3536
// Add all the formats you want to support here
3637
hex: true,

0 commit comments

Comments
 (0)