On Saturday, 18 May 2024 at 22:57:23 UTC, Aleksey Gorelov wrote:
I am trying to debug on windows.
A simple hello world app compiled with
```
"c:\D\ldc2-1.38.0-windows-x64\bin\ldc2.exe" -gdwarf -O0 app.d
```
has debug symbols.
But the same app compiled with
```
dub build -b debug
--compiler
The dub build with --verbose option generates the output
```
Generating using build
Configuring dependent testd1, deps:
Performing "debug" build using
c:\D\ldc2-1.38.0-windows-x64\bin\ldc2.exe for x86_64.
testd1 ~master: building configuration "application"...
c:\D\ldc2-1.38.0-windows-x64\bin\ld
I am trying to debug on windows.
A simple hello world app compiled with
```
"c:\D\ldc2-1.38.0-windows-x64\bin\ldc2.exe" -gdwarf -O0 app.d
```
has debug symbols.
But the same app compiled with
```
dub build -b debug
--compiler="c:\D\ldc2-1.38.0-windows-x64\bin\ldc2.exe" --force
--root ../.