-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
[Feature-request] Debug-hover variable when not at breakpoint #2745
Comments
This would only work if the GDB debug adapter would support evalute on hover, and if it supported evalution while not stopped (might support this already) |
@isidorn Evaluation through a Watch is supported while not stopped. At least for Debug. I have created a ticket (WebFreak001/code-debug#10) to support evaluation on hover. |
@csholmq @isidorn I don't think that this request makes sense. Imagine this: the multi-threaded program is running and the user hovers over a variable I'm one of the original authors of Eclipse and the Java debugger, but I have to admit that I'm not aware of the fact that "the Eclipse hover polls variables between breakpoints". What debug plugin are you referring to? |
Agreed, this would of course only make sense on global variables. My colleague has written a GDB bridge for our embedded development and then uses a GDB plugin to poll global variables using hover (I'll double check which plugin). As I'm an embedded developer working mainly with C, a simple This might only be valid for a structural language such as C. |
@csholmq I suggest that you file a feature request "Make debug hover extensible" and then explain your exact use case (just copy your previous comment). |
@weinand I checked with my colleague and he uses the C/C++ GDB Hardware Debugging plugin And this is what goes on in the Console (not same session):
As you can see, he starts up the debugging and then it stays in Suspended. Super helpful in embedded projects where you have e.g. current control loops running (in our case motor control) that you can't afford to breakpoint. |
When remote debugging (GDB in my case) and not being able to breakpoint, it would be super helpful to be able to read variables on the fly (e.g. with hover). The workflow of adding variables to Watch takes forever in comparison and doesn't continuously update.
For reference, this works in Eclipse where hover polls variables between breakpoints.
The text was updated successfully, but these errors were encountered: