vscode-debug-visualizer icon indicating copy to clipboard operation
vscode-debug-visualizer copied to clipboard

Could not parse evaluation result as JSON: Unexpected token b in JSON at position 0 Evaluation result was: beta@15 "100 4 2 6 5 10 " Used debug adapter: java

Open khodex-rei opened this issue 5 years ago • 4 comments

When I debug Java file, it doesn't visualize data, it just give me this message. Help me! How can visualize my data? image

khodex-rei avatar Sep 01 '20 10:09 khodex-rei

In case of java, you can only visualize json strings! Your toString method needs to return proper json, also you need to enter "this.toString()", not "this".

hediet avatar Sep 01 '20 11:09 hediet

image I got same issue

khodex-rei avatar Sep 01 '20 11:09 khodex-rei

In case of java, you can only visualize json strings!

See the readme for further explanations ;) There is also a java demo.

hediet avatar Sep 01 '20 12:09 hediet

I guess then I would run str(variable_name) in the case of python. Could I also run python import commands, e.g. import pandas as pd or import numpy as np in the debug visualizer? I ask because np.array(str(variable_name)) results in NameError: name 'np' is not defined.

vedhasam avatar Aug 18 '22 12:08 vedhasam