How to debug (set a breakpoint) into the unittest executable?

felixfxu felixfxu at gmail.com
Tue Sep 2 14:03:44 UTC 2025


Hi,

I'm testing dlang in ubuntu with vscode and some extensions, I 
can debug a valid executable with codelldb and set breakpoints in 
the d code.

Then I realized that the unittest executable file is also 
generated in the work folder after I run "dub test -b debug". 
Then I would like to debug into that unittest executable file 
just as I did previously to other valid dlang executable files.

But the debug seems to run ok but the breakpoints never stop, 
why? maybe no debug info in that unitttest executable file?

Thanks.


More information about the Digitalmars-d-learn mailing list