-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No "VARIABLES" when debugging GTests with Test Explorer - Debugging not working after stopping on a breakpoint #7105
Comments
Which debugger are you using |
@WardenGnaw I don't know about:
|
In your launch.json, an "Add Configuration..." button should appear in the bottom right that you can use to create a default configuration. You should be using cppdbg. This is the gdb launch template with logging added:
e.g. your "logging" appears to be outside of a configuration. |
@sean-mcmanus Thanks for the tip. I changed my
|
I haven't experienced the described issue recently (maybe because I wasn't doing much debugging). Unfortunately as seen above I have just disabled the logging. So maybe this is a partial issue of the original issue? |
I generally experience a variety of issues when debugging on MacOS Big Sur. Like debugger shortcuts F12, F11 etc. seem to interfere with MacOS shortcuts. I don't get step in functionality, instead some MacOS functionality gets triggered. Yet the fan starts blowing like jet during a take-off: |
One way the previously described hang happens is like that: I click on "Debug" (as seen on the Screenshot) in the Test file: Then I click "Continue". The second breakpoint in another file (Source file) is hit: Then regardless what I click: "Continue", "Step in", etc. the debugger appears to hang. If I click "Stop". I can place the next break point in the constructor itself and remove the second one to work around this. Or I get a CPU meltdown again: Note:I can go and Force Quit these lldb-mi processes. |
Today I consistently once again I experience this issue. I have attached a log. |
And again debugging doesn't actually work. After stopping on a breakpoint nothing but "Stop" works - continue, step, step over - don't do anything. |
@sean-mcmanus @WardenGnaw I noticed a pattern. If the debugging pane is opened - debugging fails. If the debugging panel is opened and I point over a variable I get to see its value. Then debugging works - I step to the next variable and if I open the debugging pane - I see the variables. Does this make any sense? |
|
Continued here: #9831 |
Type: Debugger
Describe the bug
To Reproduce
Debugging Google Test Unit Tests with Google Test:
Sometimes when the breakpoint is hit - the VARIABLES pane is empty. The Call Stack is available usually (maybe even always). Unfortunately that is all the information I could provide.
The text was updated successfully, but these errors were encountered: