linux - 在 Linux 中调试共享库

标签 linux debugging shared

所以,我们有一个用于 Softimage 的插件。不幸的是,Linux 版本在某处存在错误。

在 Softimage 使用该插件(共享库)时,是否有调试该插件的好方法?是否可以使用 Eclipse 或任何其他 IDE 来调试插件?

我们确实需要尽快完成这项工作。该错误本身看起来非常简单,但我们只是不知道去哪里找。

最佳答案

Is there a nice way to debug that plugin, a shared library, while it's used by Softimage?

是的。

Is it possible to use Eclipse, or any other IDE, to debug the plugin?

是的。

您使用任何调试器的方式与使用它调试任何其他可执行文件的方式完全相同:

gdb /path/to/exe
(gdb) run <arguments>

Is it possible even if we don't have access to the source of the program

为什么你认为你需要那个来源?

大概这个错误表现为崩溃、错误或其他一些不正确的行为。运行程序直到崩溃点,然后使用where命令找出崩溃的位置,print检查变量等。

如果在崩溃点没有足够的信息来诊断问题,设置断点并根据需要重新运行。

关于linux - 在 Linux 中调试共享库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10131883/

相关文章:

javascript - `ng-model` 属性在 Angularjs 验证中的意义是什么?

Android Studio 1.2 beta 版本挂起调试

c - 在共享库中使用全局变量

ios - Xcode 4 iOS 项目结构问题

linux - 重新启动后不再安装共享文件夹(Virtualbox -- Windows7)

linux - bash 脚本多重条件

c++ - '/usr/include/c++/4.4/bits/'中的位是什么意思

linux - Bash 并行执行和退出代码

node.js - 在 nodejs 中生成参数中带有空格的 unix 命令

c# - 调试 Windows 服务的更简单方法