Re: Better debugging?

2021-10-09 Thread Imperatorn via Digitalmars-d-learn
On Sunday, 3 October 2021 at 23:17:25 UTC, Basile B. wrote: On Sunday, 3 October 2021 at 22:21:45 UTC, Tim wrote: [...] 1. LDC2 generate better debug infos, especially for classes, although this might change from the next DMD version (it will include the inherited fields, just like LDC2).

Re: Better debugging?

2021-10-04 Thread WebFreak001 via Digitalmars-d-learn
On Sunday, 3 October 2021 at 22:27:20 UTC, Tim wrote: On Sunday, 3 October 2021 at 22:26:15 UTC, Imperatorn wrote: On Sunday, 3 October 2021 at 22:21:45 UTC, Tim wrote: [...] You don't say which operating system you are using. I usually use Visual D which works great imo. If I use vscode I u

Re: Better debugging?

2021-10-03 Thread max haughton via Digitalmars-d-learn
On Sunday, 3 October 2021 at 22:21:45 UTC, Tim wrote: Hi all, I am currently using GDB within VScode with the -gc DMD2 compiler switch and my debugging is not amazing. Whenever I inspect a struct/object it just shows me the pointer rather than the object information and strings come up as a g

Re: Better debugging?

2021-10-03 Thread Basile B. via Digitalmars-d-learn
On Sunday, 3 October 2021 at 22:21:45 UTC, Tim wrote: Hi all, I am currently using GDB within VScode with the -gc DMD2 compiler switch and my debugging is not amazing. Whenever I inspect a struct/object it just shows me the pointer rather than the object information and strings come up as a g

Re: Better debugging?

2021-10-03 Thread Imperatorn via Digitalmars-d-learn
On Sunday, 3 October 2021 at 22:27:20 UTC, Tim wrote: On Sunday, 3 October 2021 at 22:26:15 UTC, Imperatorn wrote: On Sunday, 3 October 2021 at 22:21:45 UTC, Tim wrote: [...] You don't say which operating system you are using. I usually use Visual D which works great imo. If I use vscode I u

Re: Better debugging?

2021-10-03 Thread Adam Ruppe via Digitalmars-d-learn
On Sunday, 3 October 2021 at 22:21:45 UTC, Tim wrote: -gc DMD2 compiler switch tried plain -g ? -gc is a compatibility debug thing for things with zero D support. p oboslete now

Re: Better debugging?

2021-10-03 Thread Tim via Digitalmars-d-learn
On Sunday, 3 October 2021 at 22:26:15 UTC, Imperatorn wrote: On Sunday, 3 October 2021 at 22:21:45 UTC, Tim wrote: [...] You don't say which operating system you are using. I usually use Visual D which works great imo. If I use vscode I use the C++ debug extension (don't remember what it's c

Re: Better debugging?

2021-10-03 Thread Imperatorn via Digitalmars-d-learn
On Sunday, 3 October 2021 at 22:21:45 UTC, Tim wrote: Hi all, I am currently using GDB within VScode with the -gc DMD2 compiler switch and my debugging is not amazing. Whenever I inspect a struct/object it just shows me the pointer rather than the object information and strings come up as a g

Better debugging?

2021-10-03 Thread Tim via Digitalmars-d-learn
Hi all, I am currently using GDB within VScode with the -gc DMD2 compiler switch and my debugging is not amazing. Whenever I inspect a struct/object it just shows me the pointer rather than the object information and strings come up as a gross array of the characters. Does anybody happen to k