Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
remove quotes from stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Mar 23, 2017
1 parent adeb931 commit 81c69ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/node/nodeDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3552,9 +3552,15 @@ export class NodeDebugSession extends LoggingDebugSession {
return undefined;
}

}).then(stack => {
}).then((stack: string | undefined) => {

if (stack) {

// remove quotes
if (stack.length > 1 && stack[0] === '"' && stack[stack.length-1] === '"') {
stack = stack.substr(1, stack.length-2);
}

response.body.details = {
stackTrace: stack
}
Expand Down

0 comments on commit 81c69ed

Please sign in to comment.