1

Does anybody know how i can debug Navit. It doesn't matter if i can do it in MS Visual Studio or Eclipse. It doesn't matter if I have to do that under Windows or Ubuntu.

sleske
  • 81,358
  • 34
  • 189
  • 227
Christian
  • 11
  • 2

1 Answers1

0

Navit is a C application, and can be debugged using any debugger that can debug C programs.

The details depend on your development environment (IDE/editor, compiler, operating system).

For development on Linux, popular debugger options include:

Some notes:

  • Usually you want to build in debug mode (cmake option -DCMAKE_BUILD_TYPE=Debug). This will build with symbols and disable optimizations, which makes debugging easier.
  • When running the navit binary without installing it, you must run it from the directory it is created in - otherwise it will not find the plugins (which are compiled to separate libraries). Take care to configure the current directory correctly in the debugger.
sleske
  • 81,358
  • 34
  • 189
  • 227