-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Debugging Cpp Code
Janek edited this page Nov 18, 2021
·
4 revisions
Run the tests with ctest --output-on-failure
or set the environment variable CTEST_OUTPUT_ON_FAILURE
to print logs of failed tests.
Use gdb
to get backtraces in case of crashes.
- Enter gdb through
gdb mixxx-test --gtest_filter=CLASS.TESTNAME
from the build directory and wait until it has read all the symbols. (always isolate a single test when usingmixxx-test
directly) -
run
the test - Gdb will automatically stop on crash,
then use
backtrace
to inspect the call-sites.
Use a debugger with breakpoints at suspicious lines to inspect program state.
For more helpful debug inspection results,
create a .gdbinit
file,
here some instructions from KDE
and Lekensteyn.
Mixxx is a free and open-source DJ software.
Manual
Hardware Compatibility
Reporting Bugs
Getting Involved
Contribution Guidelines
Coding Guidelines
Using Git
Developer Guide
Creating Skins
Contributing Mappings
Mixxx Controls
MIDI Scripting
Components JS
HID Scripting