[Dune] Debugging Dune projects - enabling breakpoints in Xcode

Jö Fahlke jorrit at jorrit.de
Mon Jul 30 08:42:44 CEST 2012


Am Sat, 28. Jul 2012, 14:07:14 +0100 schrieb Alasdair McLeay:
> Just figured it out - added "-g" to the "CXXFLAGS" parameter in Makefile.

You may also want to make sure to disable optimizations (add "-O0" to
"CXXFLAGS").  Otherwise the compiler may reorder or entirely eliminate certain
instructions, which can be very confusing during debugging.

Regards,
Jö.

-- 
Jorrit (Jö) Fahlke, Interdisciplinary Center for Scientific Computing,
Heidelberg University, Im Neuenheimer Feld 368, D-69120 Heidelberg
Tel: +49 6221 54 8890 Fax: +49 6221 54 8884

Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das
nennen sie ihren Standpunkt.
-- A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20120730/9ccd3cfd/attachment.sig>


More information about the Dune mailing list