question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

variables not showing up with `"valuesFormatting": "parseText"`

See original GitHub issue

Running remote to a gdbserver (v9.1) on arm but my variables does not show up. If I use gdb cli I can print the variable names. Noticed the following error message;

The variable itself has the following text next to it: “Invalid variable attributes”.

A notification popping up says the following;

A syntax error in expression, near `'. (from data-evaluate-expression --thread 1 --frame 0 static_cast) 

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
infn-kecommented, Sep 21, 2022

Not sure what goes wrong, but “disabled” and prettyPrinters works. Here is the output when running with parseText.

163-stack-list-variables --thread 6 --frame 0 --simple-values
GDB -> App: {"token":163,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["variables",[[["name","this"],["arg","1"],["type","io::Event * const"],["value","0xf6d1d5c0"]],[["name","this@entry"],["arg","1"],["type","io::Event * const"],["value","0xf6d1d5c0"]],[["name","timeout"],["arg","1"],["type","int"],["value","-1"]],[["name","timeout@entry"],["arg","1"],["type","int"],["value","-1"]],[["name","max"],["type","int"],["value","<optimized out>"]],[["name","events"],["type","epoll_event *"],["value","<optimized out>"]],[["name","rv"],["type","int"],["value","<optimized out>"]]]]]}}
164-data-evaluate-expression "*(this+0)"
GDB -> App: {"token":164,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","{epfd = 19, count = 4}"]]}}

Another issue (not related to variables), is that I cannot de-select a breakpoint. I can delete the breakpoint from debug shell, but not untick it in the UI (the bp is still active even though not clinked in the UI).

0reactions
infn-kecommented, Sep 21, 2022

I guess a plain p yourvar in the debug console works, too, doesn’t it? Otherwise there would be a bigger problem.

Yes always.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · WebFreak001/code-debug - GitHub
variables not showing up with "valuesFormatting ": "parseText". #373 opened on Sep 21 by infn-ke · 6. Fails to open X11 window on...
Read more >
Variables not showing while debugging in Eclipse
When I run in debug mode, the current variables and their values are not coming up in the Variables window. The window remains...
Read more >
code-debug - Bountysource
When I insert bp without pause, the output is: "Cannot execute this command while the target is running.\nUse the \"interrupt\" command to stop...
Read more >
Looking for debugger
After breaking on the failing assert, I can step up and down the stack but I'm not able to view any variables. The...
Read more >
VxWorks SDK - Visual Studio Code Guide - Wind River Labs
If you do not already have a VSCode workspace set-up, do the following. ... valuesFormatting: (string) Set the way of showing variable values....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found