简体   繁体   English

导航和调试

[英]Navit and Debug it

Does anybody know how i can debug Navit . 有人知道我如何调试Navit吗? It doesn't matter if i can do it in MS Visual Studio or Eclipse. 我是否可以在MS Visual Studio或Eclipse中进行操作都没关系。 It doesn't matter if I have to do that under Windows or Ubuntu. 不必在Windows或Ubuntu下执行此操作。

Navit is a C application, and can be debugged using any debugger that can debug C programs. Navit是C应用程序,可以使用任何可以调试C程序的调试器进行调试。

The details depend on your development environment (IDE/editor, compiler, operating system). 详细信息取决于您的开发环境(IDE /编辑器,编译器,操作系统)。

For development on Linux, popular debugger options include: 对于在Linux上进行开发,流行的调试器选项包括:

Some notes: 一些注意事项:

  • Usually you want to build in debug mode (cmake option -DCMAKE_BUILD_TYPE=Debug ). 通常,您希望以调试模式进行构建(cmake选项-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). 当运行navit二进制文件而不安装它时,必须从创建它的目录中运行它-否则它将找不到插件(已编译为单独的库)。 Take care to configure the current directory correctly in the debugger. 请注意在调试器中正确配置当前目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM