|Message: Re: Compile B1 with debug||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
On Sun, 05 Nov 2017 18:19:40 GMT, Tim Fulcher wrote:
> I've extended the B1 example so that it counts dose in multiple volumes > simultaneously but it's raising a error and one of my volumes returns an > obscenely large value. I've looked at my code and it doesn't seem to be > me so I'll have to use a debugger to track down the problem. > > I've had a read though of the installation guide ( > https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch03s02.html > ) but this guide isn't explicit about where I set the G4DEBUG flag. > Could you tell me where? Is it in cmakelists? Cmakefiles or makefile or > cmake_install.make?
That flag is set as part of the "build type." From the command line, you can write
cmake -DCMAKE_BUILD_TYPE=<type> .....
For debugging, use <type> Debug or RelWithDebugInfo.
You will want to do this for your Geant4 build, not just the example, because chances are you're going to need (at some point :-) to be able to step through or inspect toolkit code as you go.
-- Michael Kelsey
|Inline Depth:||Outline Depth:||Add message:|