Using gdb debugger in an efficient way

Thank you @bmorgan very much for your reply. I would ask another information, please: how can I compile Geant4 in debug mode?
Thank you very much for your time.
Best regards,

Christian