开发者

Navit and Debug it

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 W开发者_运维百科indows or Ubuntu.


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:

  • gdb (text-based)
  • DDD (graphical)
  • Eclipse CDT (graphical)
  • Pyclewn (vim plugin)

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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜