www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - release build with debug information?

reply =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench saphirion.com> writes:
Is it possible to compile a release build with debug information?

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
May 21 2019
next sibling parent Alex <sascha.orlov gmail.com> writes:
On Tuesday, 21 May 2019 at 09:48:34 UTC, Robert M. Münch wrote:
 Is it possible to compile a release build with debug 
 information?
There is a "release-debug" version in case you are using dub. Not sure, if there is enough debug info for you.
May 21 2019
prev sibling parent Adam D. Ruppe <destructionator gmail.com> writes:
On Tuesday, 21 May 2019 at 09:48:34 UTC, Robert M. Münch wrote:
 Is it possible to compile a release build with debug 
 information?
with plain dmd dmd -g -release -O or dmd -g -release -debug -O The -g is debug info. The -debug switch turns on `debug` code blocks. -O turns on optimizations. -release removes asserts and adds potential security holes to your application. You can use all of these independently or together in any combination.
May 21 2019