Can't start to debug an app in any IDE
Wusiki Jeronii
wusikijeronii at gmail.com
Sat Sep 21 22:13:59 UTC 2019
On Saturday, 21 September 2019 at 10:47:23 UTC, WebFreak001 wrote:
>
> How did you compile your programs? Using dub there should be no
> problem because it defaults to emitting debug symbols.
>
> If you manually invoke LDC/DMD you have to pass the -g flag to
> output debug symbols.
>
> In dub you can additionally add "lflags":
> ["/PDB:my_program_name.pdb"] to your dub.json to make it emit a
> .pdb file which in my experience improved debug experience when
> it before didn't work. It might be generated in the .dub folder
> and you can copy it if it still doesn't work
So far I compile code using terminal via ldc2. I compiled the app
using '-g' flag and then compiler created a .pdb file. When I
started debug I've got the same error. I decided to change
debuggers for one more test (mago, gdb and cpp). I got the same
errors. Then I return debugger to gdb and now I get the error
"Failed to load MI Debugger". Not inexecutable format. Just app's
launch works. These errors I got in the VS code. In IntelliJ IDEA
now I get the error 'No symbol table is loaded. Use the "file"
command.'
What's the right path for dub.json?
More information about the Digitalmars-d-ide
mailing list