[英]Navit and Debug it
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上进行开发,流行的调试器选项包括:
gdb
(text-based) gdb
(基于文本) Some notes: 一些注意事项:
-DCMAKE_BUILD_TYPE=Debug
). 通常,您希望以调试模式进行构建(cmake选项-DCMAKE_BUILD_TYPE=Debug
)。 This will build with symbols and disable optimizations, which makes debugging easier. 这将使用符号构建并禁用优化,这使调试更加容易。 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.