Re: How to debug and watch globals in windows debugger?

2023-03-29 Thread Salih Dincer via Digitalmars-d-learn
On Wednesday, 29 March 2023 at 21:09:57 UTC, ryuukk_ wrote: Also it's more of an accumulation of problems that makes me very annoyed https://issues.dlang.org/show_bug.cgi?id=20737 This for example shouldn't be a thing in 2023, period I agree with you because it's such a simple problem and

Re: How to debug and watch globals in windows debugger?

2023-03-29 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 30/03/2023 10:09 AM, ryuukk_ wrote: more people should voice their complains Making noise about problems in D.learn is not the place to do it, I don't think compiler developers tend to monitor it much. Show your analysis of the situation in General, that is monitored. Especially since

Re: How to debug and watch globals in windows debugger?

2023-03-29 Thread ryuukk_ via Digitalmars-d-learn
On Wednesday, 29 March 2023 at 15:26:21 UTC, Steven Schveighoffer wrote: On 3/28/23 6:42 PM, ryuukk_ wrote: Am i the only want who want to improve things, is it a lost cause? I'm not one to use a debugger often, but it is very helpful for many people. I lament that the Windows debugging

Re: How to debug and watch globals in windows debugger?

2023-03-29 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/28/23 6:42 PM, ryuukk_ wrote: Am i the only want who want to improve things, is it a lost cause? I'm not one to use a debugger often, but it is very helpful for many people. I lament that the Windows debugging situation out of the box is dreadful. The students I teach D to I don't

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread ryuukk_ via Digitalmars-d-learn
On linux everything works properly out of the box, i tested with gdb and i can inspect globals More info + linux dump on my comment: https://github.com/microsoft/vscode-cpptools/issues/10751#issuecomment-1487694435 So it's a problem either with msvc, or the way dmd/ldc write information for

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 28 March 2023 at 14:02:39 UTC, ryuukk_ wrote: Ready to test folder: https://github.com/microsoft/vscode-cpptools/issues/10751#issuecomment-1486948783 Contains simple source to reproduce the issue + build script Also contains binaries + dump in case you just want to see the data

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread ryuukk_ via Digitalmars-d-learn
Ready to test folder: https://github.com/microsoft/vscode-cpptools/issues/10751#issuecomment-1486948783 Contains simple source to reproduce the issue + build script Also contains binaries + dump in case you just want to see the data Hopefully we can figure that out

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread ryuukk_ via Digitalmars-d-learn
C program: ```C int notice_me_global = -1; void main() { notice_me_global = -5; } ``` ``cl app_c.c /DEBUG /Zi /EHsc /std:c11 /link /DEBUG /out:app_c.exe`` ``llvm-pdbutil.exe dump --globals app_c.pdb > dump_c`` ``` 688476 | S_GDATA32 [size = 32] `notice_me_global` type =

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread ryuukk_ via Digitalmars-d-learn
I opened an issue on microsoft's github, let's see what they have to say: https://github.com/microsoft/vscode-cpptools/issues/10751

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 28 March 2023 at 11:07:02 UTC, ryuukk_ wrote: On Tuesday, 28 March 2023 at 04:22:24 UTC, Richard (Rikki) Andrew Cattermole wrote: On 28/03/2023 2:25 PM, ryuukk_ wrote: On Tuesday, 28 March 2023 at 01:06:50 UTC, Richard (Rikki) Andrew Cattermole wrote: Have you tried installing

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 28 March 2023 at 04:22:24 UTC, Richard (Rikki) Andrew Cattermole wrote: On 28/03/2023 2:25 PM, ryuukk_ wrote: On Tuesday, 28 March 2023 at 01:06:50 UTC, Richard (Rikki) Andrew Cattermole wrote: Have you tried installing mago? https://github.com/rainers/mago There are instructions

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread WebFreak001 via Digitalmars-d-learn
On Tuesday, 28 March 2023 at 04:22:24 UTC, Richard (Rikki) Andrew Cattermole wrote: On 28/03/2023 2:25 PM, ryuukk_ wrote: On Tuesday, 28 March 2023 at 01:06:50 UTC, Richard (Rikki) Andrew Cattermole wrote: Have you tried installing mago? https://github.com/rainers/mago There are instructions

Re: How to debug and watch globals in windows debugger?

2023-03-28 Thread WebFreak001 via Digitalmars-d-learn
On Tuesday, 28 March 2023 at 01:04:19 UTC, ryuukk_ wrote: I've now waste an entire day trying to figure out what's wrong, perhaps trusted D for my projects was a bad idea, i now look like a fool sorry to hear that, I haven't really been looking to much into the debugging problems here yet.

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 28/03/2023 2:25 PM, ryuukk_ wrote: On Tuesday, 28 March 2023 at 01:06:50 UTC, Richard (Rikki) Andrew Cattermole wrote: Have you tried installing mago? https://github.com/rainers/mago There are instructions for vs-code in README. I did not try mago, but it shouldn't be needed as pdb is

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 28/03/2023 2:33 PM, ryuukk_ wrote: what is: "Manual Installation of the Concord extension in VS Code", i can't find it anywhere Extension is mago, but don't forget: cpptools-1.4.0 or later needed. what are: "MagoNatCC.dll, MagoNatCC.vsdconfig and .vsdbg-config.json"? i can only find:

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 28 March 2023 at 01:21:02 UTC, Richard (Rikki) Andrew Cattermole wrote: On 28/03/2023 2:06 PM, Richard (Rikki) Andrew Cattermole wrote: Have you tried installing mago? https://github.com/rainers/mago There are instructions for vs-code in README. Binaries are available in the

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 28 March 2023 at 01:06:50 UTC, Richard (Rikki) Andrew Cattermole wrote: Have you tried installing mago? https://github.com/rainers/mago There are instructions for vs-code in README. I did not try mago, but it shouldn't be needed as pdb is universally understood by tools It

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 28/03/2023 2:06 PM, Richard (Rikki) Andrew Cattermole wrote: Have you tried installing mago? https://github.com/rainers/mago There are instructions for vs-code in README. Binaries are available in the installer of VisualD, they can be extracted by 7zip (I've checked everything is in

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
Have you tried installing mago? https://github.com/rainers/mago There are instructions for vs-code in README.

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
I've now waste an entire day trying to figure out what's wrong, perhaps trusted D for my projects was a bad idea, i now look like a fool

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
Fore more clarity, all syntax i have tried: ``` type_to_tiledef kshared.defs.type_to_tiledef _D7kshared4defs15type_to_tiledef kshared:defs:type_to_tiledef kshared::defs::type_to_tiledef kshared->defs->type_to_tiledef ```

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
Two questions for the D team: Does globals have a special syntax? as you can see above i also tried the mangled name inside the PDB (using hex viewer https://github.com/WerWolv/ImHex) Walter, how do you debug your programs written in D?

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
To clarify, i tested both dmd/ldc, they both doesn't work on windows To clarify even more: I am a mere user who wants to debug its program on windows using vscode's debugger wich uses msvc I can debug a c/rust/zig executable without issue and see globals The problem only happens with

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
On Monday, 27 March 2023 at 19:31:24 UTC, Richard (Rikki) Andrew Cattermole wrote: The person you need is WebFreak and they are not online right now. On IRC earlier today ``` [6:43:29 pm] nope, I haven't gotten globals to work in debugger before [6:43:33 pm] I don't think they are

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
The person you need is WebFreak and they are not online right now.

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
If anyone know what is the problem exactly, then please speak up, this problem needs to be reported to the right place fixed so it can be fixed, all languages i tested don't have this issue (c, rust, zig, odin) D is not a toy language, let's take this issue seriously, shall we? or is it?..

Re: How to debug and watch globals in windows debugger?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
Anyone got an idea? Executable built with : ``dmd -g -debug`` on windows On Visual Studio with the visuald addon i can debug the executable and inspect the globals On VSCode i can debug the executable and inspect locals, but not globals What does visuald does under the hood to be able to

How to debug and watch globals in windows debugger?

2023-03-26 Thread ryuukk_ via Digitalmars-d-learn
I tried to look around, what ever i try, nothing works There is a mention of "fully qualified" here: https://forum.dlang.org/post/peb1jj$tr$1...@digitalmars.com But what does that mean? I tried this: ![screenshot](https://i.imgur.com/JZooIic.pngg) But it doesn't work