Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/client/datascience/jupyter/debuggerVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class DebuggerVariables extends DebugLocationTracker
return results
? {
...targetVariable,
...JSON.parse(results.result.slice(1, -1))
...JSON.parse(results.result)
}
: targetVariable;
}
Expand Down Expand Up @@ -158,7 +158,7 @@ export class DebuggerVariables extends DebugLocationTracker
// tslint:disable-next-line: no-any
(targetVariable as any).frameId
);
const chunkResults = JSON.parse(results.result.slice(1, -1));
const chunkResults = JSON.parse(results.result);
if (output && output.data) {
output = {
...output,
Expand Down Expand Up @@ -225,7 +225,8 @@ export class DebuggerVariables extends DebugLocationTracker
const results = await this.debugService.activeDebugSession.customRequest('evaluate', {
expression: code,
frameId: this.topMostFrameId || frameId,
context: 'repl'
context: 'repl',
format: { rawString: true }
});
if (results && results.result !== 'None') {
return results;
Expand Down Expand Up @@ -268,7 +269,7 @@ export class DebuggerVariables extends DebugLocationTracker
return {
...variable,
truncated: false,
...JSON.parse(results.result.slice(1, -1))
...JSON.parse(results.result)
};
} else {
// If no results, just return current value. Better than nothing.
Expand Down