Skip to content

Commit

Permalink
Uniform capitization of gdb
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Feb 16, 2024
1 parent a705038 commit bff358f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Tutorials/Intermediate/Testing/CLI.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ To see the exact test cases which fail, use the ``--verbose`` flag:
Debugging tests with GDB
^^^^^^^^^^^^^^^^^^^^^^^^

If a C++ test is failing, gdb can be used directly on the test executable in the build directory.
If a C++ test is failing, GDB can be used directly on the test executable in the build directory.
Ensure to build the code in debug mode.
Since the previous build type may be cached by CMake, clean the cache and rebuild.

.. code-block:: console
colcon build --cmake-clean-cache --mixin debug
In order for gdb to load debug symbols for any shared libraries called, make sure to source your environment.
In order for GDB to load debug symbols for any shared libraries called, make sure to source your environment.
This configures the value of ``LD_LIBRARY_PATH``.

.. code-block:: console
source install/setup.bash
Finally, run the test directly through gdb.
Finally, run the test directly through GDB.
For example:

.. code-block:: console
Expand Down

0 comments on commit bff358f

Please sign in to comment.