-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
void* shows 0x0000000000 in debugger #267
Comments
Are you able to verify if this is (or is not) an issue with the generated PDB (which compiler?) rather than visuald? |
Not confirmed. DMD 2.106. |
Hi Manu. I guess you are using VS 17.8, Visual D 1.4.0-beta2?
I cannot reproduce here. Can you show the full code? Maybe the debug info of surrounding code affects this, e.g. there might be another declaration of hCom elsewhere in the function, but in a different scope.
I can reproduce this in VS2022 while debugging, works during normal edits. VS 2019 still works, too. IIRC there is a (slightly abused) callback to enable this for compile time values that might no longer work. |
I'm on VS 17.7.3. Yeah; Visual D 1.4.0-beta2 It fails in this test. Pretty minimal: void main()
{
import core.sys.windows.windows;
HANDLE h = INVALID_HANDLE_VALUE;
if (h != INVALID_HANDLE_VALUE) // put breakpoint here
return;
} I'll poke around a bit more. Separate to that, I have some weird long freezes going on from time to time. |
I recently discovered another issue, supposedly when running Win11: #261 (comment) Maybe try disabling 'Tools->Options->Debugging->General->Load debug symbols in external process. |
I already found that thread and disabled that option. Before I did that it was completely unusable, like totally broken. |
Maybe also fixed with other crash fixes, please try https://github.com/dlang/visuald/releases/tag/v1.4.0-rc1 |
Thanks for the screenshots, they showed that you don't have the option "remove leading zeroes from hex values" under Tools->options->Debugger->Mago enabled. This triggered a bug with displaying 64-bit values. Until the fix is released, enabling that option should help. |
Oh great, I like leading zeroes in hex values :) |
The fix was released in https://github.com/dlang/visuald/releases/tag/v1.4.0-rc2 |
I've started writing some code, fresh VS install, latest version. I'm noticing heaps of regressions in general. Stability is just not where it used to be.
Here's one for now:
Step through that code; notice that hCom says
0x0000000000000000
at all times no matter what the actual value.You can see the real value with:
And then hover
x
, and you'll see the proper value.Also notice that the hovering over the enum
INVALID_HANDLE_VALUE
does not show its value. Hovering enum's like this used to work.The text was updated successfully, but these errors were encountered: