You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```dlang
module debugme;
struct NoticeMe
{
int value_int;
}
NoticeMe notice_me_global;
void break_me()
{
NoticeMe i_am_local;
}
{}
Break at: i_am_local, and try to inspect notice_me_global
notice_me_global // doesn't work
debugme.notice_me_global //doesn't work
debugme:notice_me_global //doesn't work
debugme::notice_me_global //doesn't work
debugme@notice_me_global // doesn't work
I should be able to inspect and watch globals
Notes:
it works with visual studio when you have the visual d plugin
it doesn't work on visual studio code debugger (wich uses msvc)
ryuukk.dev reported this on 2023-03-27T23:21:02Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=23811
CC List
Description
Take this example:
OS: Windows x64
Debugger: Visual Studio Code
NoticeMe notice_me_global;
void break_me()
{
NoticeMe i_am_local;
}
{}
Break at: i_am_local, and try to inspect notice_me_global
I should be able to inspect and watch globals
Notes:
Notes 2:
D should provide great experience on popular editors/tools, otherwise what to tell to people?
Notes 3:
It works great out of the box with: c/c++/rust/zig/odin/jai
Notes 4:
I tried to raise awareness and ask questions on IRC/Forum, i was left blind, not a good outlook
Notes 5:
Making D great to use is my goal, just a reminder, in case people see me as a "complainer"
Notes 6:
People are too kind, they see X not working, they'll move on and choose Y instead, X team won't understand why people leave
Comments
razvan.nitu1305 commented on 2023-03-28T10:27:34Z
I don't use any of the tools you pointed out, but potential issues might be:
Anyway, this seems more like a tool issue, rather than a compiler issue.
ryuukk.dev commented on 2023-03-28T11:09:16Z
As i mentioned in the forum post, it is compiled with debug -g -debug, i tried all kind of -g (-g -gf -gs)
The problem is displayed here:
https://godbolt.org/z/nYGfMTqYY
!dbg on the global for C++
missing for D
ryuukk.dev commented on 2023-03-28T11:10:26Z
nevermind my previous comment
ryuukk.dev commented on 2023-03-28T13:16:21Z
I opened an issue on the microsoft tracker, let's wait and see what they have to say: microsoft/vscode-cpptools#10751
ryuukk.dev commented on 2023-03-28T13:48:45Z
I provide more information on the forum post:https://forum.dlang.org/post/[email protected]
ryuukk.dev commented on 2023-03-28T14:48:45Z
I noticed in the pdb, there are no mention of the
app_d
moduleI can only find:
and
Is that why the debugger can't inspect global variables?
Why doesn't the pdb contain anything about
app_d
?The text was updated successfully, but these errors were encountered: