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

Cannot change boolean variable with lldb-dap #112597

Open
JDevlieghere opened this issue Oct 16, 2024 · 0 comments
Open

Cannot change boolean variable with lldb-dap #112597

JDevlieghere opened this issue Oct 16, 2024 · 0 comments
Labels

Comments

@JDevlieghere
Copy link
Member

To change the value of a boolean variable, lldb-dap rejects true and false and makes you use 0 and 1.

Using false:

{"command":"setVariable","arguments":{"variablesReference":24,"name":"m_is_file","value":"false"},"type":"request","seq":27}
{"body":{"message":"'false' is not a valid integer string value"},"command":"setVariable","request_seq":27,"seq":0,"success":false,"type":"response"}

Use 1:

{"command":"setVariable","arguments":{"variablesReference":24,"name":"m_is_file","value":"1"},"type":"request","seq":30}
{"body":{"type":"bool","value":"true","variablesReference":0},"command":"setVariable","request_seq":30,"seq":0,"success":true,"type":"response"}

I'm not sure if this is really an lldb-dap issue or SBValue::SetValueFromCString doing the wrong thing.

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

No branches or pull requests

1 participant