Debugging

From K-3D

Jump to: navigation, search

This page gives a brief overview on how to do basic debugging on K-3D crashes.

  1. Build K-3D with CMAKE_BUILD_TYPE set to Debug in cmake
  2. If you have a consistent way of crashing K-3D, start K-3D from the build dir using make run-debug
  3. At the gdb prompt, type run
  4. Do what is needed to provoke the crash
  5. Switch back to the terminal where you started K-3D, and type 'bt'
  6. You should now get a trace, showing the files and lines of source code that led to the crash
Personal tools