Currently, running rdmd -g --build-only main && gdb main yields: warning: Could not find object file "/tmp/.rdmd-503/rdmd-main.d-.../main.o" - no debug information available for "main.d". (but using the manual way with dmd works... with the names mangled but that's a different issue ) perhaps it would be possible to preserve debug info when -g (or -debug, etc) is present as opposed to having -o- (which appears when --chatty is on) ?
(In reply to comment #0) > Currently, running > rdmd -g --build-only main && gdb main > > yields: > warning: Could not find object file "/tmp/.rdmd-503/rdmd-main.d-.../main.o" - > no debug information available for "main.d". What OS is this on? You specified "All" but it does not apply to Windows and does not happen on Linux. > perhaps it would be possible to preserve debug info when -g (or -debug, etc) is > present as opposed to having -o- (which appears when --chatty is on) ? I can't make out any meaning from the above. Judging by the error message, the problem is that rdmd deletes object (.o) files after a successful build.
Moved to: https://github.com/dlang/tools/issues/427