source: src/documentation/debug.dox@ 732507

Action_Thermostats Add_AtomRandomPerturbation Add_FitFragmentPartialChargesAction Add_RotateAroundBondAction Add_SelectAtomByNameAction Added_ParseSaveFragmentResults AddingActions_SaveParseParticleParameters Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_ParticleName_to_Atom Adding_StructOpt_integration_tests AtomFragments Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.5.4 Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator CombiningParticlePotentialParsing Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_BoundInBox_CenterInBox_MoleculeActions Fix_ChargeSampling_PBC Fix_ChronosMutex Fix_FitPartialCharges Fix_FitPotential_needs_atomicnumbers Fix_ForceAnnealing Fix_IndependentFragmentGrids Fix_ParseParticles Fix_ParseParticles_split_forward_backward_Actions Fix_PopActions Fix_QtFragmentList_sorted_selection Fix_Restrictedkeyset_FragmentMolecule Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns Fix_fitting_potentials Fixes ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion FragmentAction_writes_AtomFragments FragmentMolecule_checks_bonddegrees GeometryObjects Gui_Fixes Gui_displays_atomic_force_velocity ImplicitCharges IndependentFragmentGrids IndependentFragmentGrids_IndividualZeroInstances IndependentFragmentGrids_IntegrationTest IndependentFragmentGrids_Sole_NN_Calculation JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix MoreRobust_FragmentAutomation ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PdbParser_setsAtomName PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks Rewrite_FitPartialCharges RotateToPrincipalAxisSystem_UndoRedo SaturateAtoms_findBestMatching SaturateAtoms_singleDegree StoppableMakroAction Subpackage_CodePatterns Subpackage_JobMarket Subpackage_LinearAlgebra Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg Switchable_LogView ThirdParty_MPQC_rebuilt_buildsystem TrajectoryDependenant_MaxOrder TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps TremoloParser_setsAtomName Ubuntu_1604_changes stable
Last change on this file since 732507 was 1a041f, checked in by Frederik Heber <heber@…>, 13 years ago

DOCU: added documentation on how to debug the code.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*
2 * Project: MoleCuilder
3 * Description: creates and alters molecular systems
4 * Copyright (C) 2010 University of Bonn. All rights reserved.
5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
6 */
7
8/**
9 * \file debug.dox
10 *
11 * Herein, notes concerning the debugging of the code are contained.
12 *
13 * Created on: Nov 10, 2011
14 * Author: heber
15 */
16
17/**
18 * \page debug Some notes on Debugging
19 *
20 * \section debug-libtool Debug the code with libtool
21 *
22 * Since the switch to shared libraries we use libtool to do the compiling and
23 * linking.
24 *
25 * Due to its inner workings, the true executable is not generated until
26 * \code
27 * make install
28 * \endcode
29 * is executed. If you check on e.g. \b./src/molecuilder in your build directory
30 * after compilation you will notice that it is just a shell script pointing to
31 * some stuff residing in \b .libs in the same directory.
32 *
33 * Hence, debugging this shell script will not work, but make \a gdb cry out
34 * that it does not recognize the executable's format:
35 * \code
36 * $> gdb ./src/molecuilder
37 * GNU gdb (GDB) 7.1-ubuntu
38 * Copyright (C) 2010 Free Software Foundation, Inc.
39 * License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
40 * This is free software: you are free to change and redistribute it.
41 * There is NO WARRANTY, to the extent permitted by law. Type "show copying"
42 * and "show warranty" for details.
43 * This GDB was configured as "x86_64-linux-gnu".
44 * For bug reporting instructions, please see:
45 * <http://www.gnu.org/software/gdb/bugs/>...
46 * "/mnt.auto/bespin/heber/workspace_C/molecuilder/debug64/src/molecuilder": not in executable format: File format not recognized
47 * (gdb) q
48 * \endcode
49 * Instead, execute:
50 * \code
51 * libtool --mode=execute gdb --args ./src/molecuilder -v [some more options ...]
52 * \endcode
53 * You may also set your own alias in \b ~/.bashrc to ease the typing, just add
54 * the following line to the file
55 * \code
56 * alias debug='libtool --mode=execute gdb --args'
57 * \endcode
58 *
59 *
60 * \date 2011-11-10
61 *
62 */
Note: See TracBrowser for help on using the repository browser.