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

Watch JSON variables in Debug #1902

Closed
csurgay opened this issue Jan 14, 2020 · 7 comments
Closed

Watch JSON variables in Debug #1902

csurgay opened this issue Jan 14, 2020 · 7 comments
Labels
kind: question state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated

Comments

@csurgay
Copy link

csurgay commented Jan 14, 2020

Hi All,
is there a way to watch JSON variable values in Debug/Watch list in IDEs?
Regards, Peter

@dota17
Copy link
Contributor

dota17 commented Jan 16, 2020

Hmmmm, I run and debug in Clion, but i can't watch Json variable values too.
It shown that command time out.

image

But all is ok in VS.

@stale
Copy link

stale bot commented Feb 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Feb 15, 2020
@nickaein
Copy link
Contributor

Relevant: #1554

@stale stale bot removed the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Feb 15, 2020
@dota17
Copy link
Contributor

dota17 commented Mar 12, 2020

Still fail in Clion, and this time i got cannot access memory.
image

res is a array-type json, and i push back 3 object items.
Using p res in gdb, i got

$1 = {m_type = nlohmann::detail::value_t::array, m_value = {object = 0x1048060<error reading variable: Cannot access memory at address 0xabababb7>, array = 0x1048060 = {[0] = {m_type = nlohmann::detail::value_t::object, m_value = {object = 0x10480b0 = {[0] = "age", [1] = {m_type = 
....

I think the print message in gdb is OK.
Maybe Clion just get the first error reading variable: Cannot access memory at address 0xabababb7 so that it fails in Clion. If so, the probleam could be from Clion.

But when i print the first item by p res[0], i got Segmentation fault.

@stale
Copy link

stale bot commented Apr 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Apr 11, 2020
@nlohmann
Copy link
Owner

Related: #1952

@stale stale bot removed the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Apr 11, 2020
@stale
Copy link

stale bot commented May 13, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label May 13, 2020
@stale stale bot closed this as completed May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated
Projects
None yet
Development

No branches or pull requests

4 participants