Message: XCode as an IDE including compile warnings and stepping through code Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note XCode as an IDE including compile warnings and stepping through code 

Forum: Installation and Configuration
Date: 25 Nov, 2010
From: Calvin Giles <Calvin Giles>

I have spent some time getting XCode working as a real IDE with geant4, and I now have it in quite a pleasant state.

The most useful part is that my code is all written inside XCode (3.1), allowing the compiler warnings and errors to be highlighted inline with my code.

I also call the executable directly from XCode (not via a script) which means the simulation can be attached to the debugger. This means that I can add breakpoints, probe the values of variables at particular points in the code, and step through the code to debug issues.

I am able to step through the code from my project and the main geant4 source code tree.

I am willing to document how I went about this, and can include sample projects with basic functionality if there is any interest in this. It is not seamless, and I would appreciate feedback from others who have had similar success to iron out some of the kinks.

Please speak up if this would be helpful and I shall document this on a thread here.

Regards, Calvin

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Note: Re: XCode as an IDE including compile warnings and stepping through code   (Ben Morgan - 29 Nov, 2010)
2 None: Re: XCode as an IDE including compile warnings and stepping through code   (Joseph Perl - 09 Dec, 2010)
3 Feedback: Re: XCode as an IDE including compile warnings and stepping through code   (G.A.P.Cirrone - 10 Dec, 2010)
4 None: Re: XCode as an IDE including compile warnings and stepping through code   (Calvin Giles - 14 Dec, 2010)
1 None: Comments on instructions   (Calvin Giles - 14 Dec, 2010)
2 Warning: Correction - don't use a source folder and watch out for ++   (Calvin Giles - 15 Dec, 2010)
 Add Message Add Message
to: "XCode as an IDE including compile warnings and stepping through code"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]