Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not parse evaluation result as JSON: Unexpected token 'U', "Usage: -Us"... is not valid JSON #227

Open
retif opened this issue Jun 7, 2024 · 1 comment

Comments

@retif
Copy link

retif commented Jun 7, 2024

Used debug adapter: probe-rs-debug

Output on Debug Visualizer window after debugging session launched:

Could not parse evaluation result as JSON:

Unexpected token 'U', "Usage: -Us"... is not valid JSON

Evaluation result was:
Usage:	-Use <Ctrl Space> to get a list of available commands.
	- Use <Up/DownArrows> to navigate through the command list.
	- Use <Hab> to insert the currently selected command.
	- Note: This implementation is a subset of gdb commands, and is intended to behave similarly.
Available commands:
help : Information about available commands and how to use them. 
quit : Disconnect (and suspend) the target. 
c : Continue running the program on the target. 
break  [*address] : Sets a breakpoint specified location, or next instruction if unspecified. 
backtrace  [path (e.g. my_dir/backtrace.yaml)] : Print the backtrace of the current thread to a local file. 
info <subcommand> : Information of specified program data. 
  Subcommands:
  - frame  [address] : Describe the current frame, or the frame at the specified (hex) address. 
  - locals : List local variables of the selected frame. 
  - all-reg : List all registers of the selected frame. 
  - var : List all static variables. 
p  [/f (f=format[n|v])]  <local variable name> : Print known information about variable. 
x  [/Nuf (N=count, u=unit[b|h|w|g], f=format[t|x|i])]  [address (hex)] : Examine Memory, using format specifications, at the specified address. 
dump  [memory start address]  [memory size in bytes]  [path (default: ./coredump)] : Create a core dump at a target location. Specify memory ranges to dump, or leave blank to dump in-scope memory regions.

Used debug adapter: probe-rs-debug
@hediet
Copy link
Owner

hediet commented Jun 7, 2024

Maybe you can adjust the expression template for that debug adaptor! (see readme)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants