From da70a690680b6a8796e531bc997b160edd1e4de2 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Wed, 21 Jun 2017 21:27:18 -0700 Subject: [PATCH] Fix Microsoft/vscode-node-debug2#104 --- src/chrome/chromeDebugAdapter.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/chrome/chromeDebugAdapter.ts b/src/chrome/chromeDebugAdapter.ts index 6c3fbe9b4..e5f40dfdf 100644 --- a/src/chrome/chromeDebugAdapter.ts +++ b/src/chrome/chromeDebugAdapter.ts @@ -1708,6 +1708,10 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter { return this.handleScriptsCommand(args); } + if (args.expression.startsWith('{') && args.expression.endsWith('}')) { + args.expression = `(${args.expression})`; + } + const evalResponse = await this.waitThenDoEvaluate(args.expression, args.frameId, { generatePreview: true }); // Convert to a Variable object then just copy the relevant fields off