[英]Qt - debug dynamic library
I'm working on a Qt
application for ARM
and using one of our own Qt
library. 我正在为ARM
Qt
应用程序,并使用我们自己的Qt
库之一。 Application compiles and runs fine. 应用程序编译并运行良好。 Now, I want to debug. 现在,我要调试。 I've this library source open in Qt Creator
and compiled lib files are deployed at /usr/lib
on target ( ARM
board). 我已在Qt Creator
打开此库源文件,并将编译的lib文件部署在目标( ARM
板)上的/usr/lib
。 Setting up the break points in Qt Creator
is not working ie, debugger is never stopping at the breakpoints. 在Qt Creator
设置断点不起作用,即调试器永远不会在断点处停止。
How to properly debug dynamically loaded libraries? 如何正确调试动态加载的库?
You don't debug libraries, you debug processes. 您不调试库,而是调试进程。 Attach to a process that runs on the target. 附加到在目标上运行的进程。 If the process has loaded your library, your breakpoints will become active. 如果该进程已加载您的库,则断点将变为活动状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.