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

With multiple real target launches, debug operation changes call stack selection #118

Open
vinodappuvmw opened this issue Dec 14, 2023 · 3 comments

Comments

@vinodappuvmw
Copy link

vinodappuvmw commented Dec 14, 2023

I'm testing using two debug launches (Real hardware debugging) in windows, cdt-gdb-vscode v0.0.108 is used. When continuously stepping on one launch, with other launch suspended, the call stack suddenly switches to suspended launch. If I continue stepping, the second launch is being stepped.

This is a wired behavior. Please let me guide on where to be focused to fix the issue.

Note : Issue is not reproducible with local debugging (Tried using amalgamator workspace https://github.com/eclipse-cdt-cloud/cdt-amalgamator )

@jonahgraham @MatthewKhouzam @thegecko @marco-miller

image

@jonahgraham
Copy link
Contributor

You can provide a trace of the debug session, e.g. verbose = true, optionally putting it in a file:

cdt-gdb-vscode/package.json

Lines 110 to 118 in 36449f8

"verbose": {
"type": "boolean",
"description": "Produce verbose log output",
"default": false
},
"logFile": {
"type": "string",
"description": "Absolute path to the file to log interaction with gdb"
},

Are you stepping on the step button next to the process you want to step, but the other one is stepping? I would look in the adapter log to see if the adapter is interpretting the input wrong, or if VSCode is sending an unexpected thread id. If the former, the bug is in the adapter and if the latter it is a vscode issue.

@vinodappu
Copy link

How can I see gdb trace? Any option in settings? I don't see any option when I checked. If I need to rebuild extension again, then it'll not help if I deployed it. Please guide.

@colin-grant-work
Copy link
Contributor

colin-grant-work commented Apr 5, 2024

When you set "verbose": true as @jonahgraham suggested, then you can see the data in the Debug Console:

launch.json:

image

Open Debug Console:

image

See all traffic between CDT-GDB Adapter and GDB:

image

When you initially encountered the problem, were you using the CDT GDB Amalgamator for debugging, or were the two sessions represented as separate debug sessions to VSCode?

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

4 participants