We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f12ba8 commit b895e9eCopy full SHA for b895e9e
src/debug/warp10DebugRuntime.ts
@@ -328,10 +328,7 @@ ${this.addBreakPoints(this.ws ?? "")}`;
328
async getStackValue(key: string) {
329
return new Promise((resolve, reject) => {
330
Requester.send(this.endpoint ?? "", `'${this.sid}' TSESSION TSTACK STACKTOLIST REVERSE ${key} GET`)
331
- .then((vars: any) => {
332
- const data = JSON.parse(vars ?? "[]")[0];
333
- resolve(JSON.stringify(data));
334
- })
+ .then((vars: any) => resolve((vars ?? "[]").replace(/^\[(.*)\]/g, '$1')))
335
.catch((e) => reject(e));
336
});
337
}
0 commit comments