Difference between revisions of "D FAQ"
Line 4: | Line 4: | ||
> dmd.exe -L/SUBSYSTEM:WINDOWS gui_app.d | > dmd.exe -L/SUBSYSTEM:WINDOWS gui_app.d | ||
See http://forum.dlang.org/post/xkvdpdsfzevanucrgkud@forum.dlang.org | See http://forum.dlang.org/post/xkvdpdsfzevanucrgkud@forum.dlang.org | ||
+ | |||
+ | Q. How to generate Stack Trace | ||
+ | |||
+ | A. Stack trace with funciton names is only supported in debug mode. So add -g option while compiling. Otherwise you would still get the stack trace but without funciton names. | ||
+ | |||
+ | See http://forum.dlang.org/post/mcczqpgaxinnryyzscns@forum.dlang.org |
Revision as of 16:28, 24 July 2013
Q. How to prevent console from popping up when writing a GUI application with DMD?
A. Pass the following argument to dmd
> dmd.exe -L/SUBSYSTEM:WINDOWS gui_app.d
See http://forum.dlang.org/post/xkvdpdsfzevanucrgkud@forum.dlang.org
Q. How to generate Stack Trace
A. Stack trace with funciton names is only supported in debug mode. So add -g option while compiling. Otherwise you would still get the stack trace but without funciton names.
See http://forum.dlang.org/post/mcczqpgaxinnryyzscns@forum.dlang.org