- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
问题很简单。我的插件由 Firebreath 创建,我想在 Linux 中使用 gdb
调试我的 *API.cpp 文件。
是的,我已经阅读了this文章,我得到了这个 PID:
30227 0.0 0.4 115024 12300 pts/2 Sl+ 00:03 0:00 /usr/lib/chromium/chromium --type=plugin --plugin-path=/home/USER/Documents/mycode/0.1/npMyPlugin.so
当我用 gdb
打开时,我总是得到类似这样的输出:
Reading symbols from /usr/lib/libpcrecpp.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpcrecpp.so.0
Reading symbols from /usr/lib/libssh2.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libssh2.so.1
Reading symbols from /usr/lib/libssl.so.1.0.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libssl.so.1.0.0
Reading symbols from /usr/lib/libcrypto.so.1.0.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcrypto.so.1.0.0
可能不是正确的过程。有什么想法吗?
提前致谢。
更新 - 忽略消息谢谢你们的评论。好吧,我忽略了这条消息并做了以下事情:
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n)
Program not restarted.
(gdb) b 328
No line 328 in the current file.
Make breakpoint pending on future shared library load? (y or n)
所以基本上 gdb
加载我的 MyPlugin.cpp 而不是我的 MyPluginAPI.cpp。有什么想法吗?
最佳答案
仅当您只有一个源文件时,仅使用行号设置断点才有效。
使用例如b MyPluginAPI.cpp:328
或 b MyPluginAPI::myMethod()
代替。
关于c++ - 在 Linux 中使用 gdb 调试 Firebreath,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10185301/
首先是关于我正在用 Firebreath 做什么的一些背景知识。 我正在使用 firebreath 在浏览器中开发渲染查看器插件。 我在插件中定义了两种 MIME 类型,一种用于主查看器,另一种用
我创建了一个演示 JS 代码来检查 mousedown 事件处理。 对于一个普通的 dom 元素,mousdown 应该警告 1 和 2。为什么它与窗口插件的情况不同,我已经将 2 个事件处理程序订阅
我正在尝试将 boost 1.46.0 与 firebreath 一起使用。我已经阅读了有关使用外部增强进行构建的 firebreath wiki,但无法弄清楚。 我将 boost 下载到 ~/boo
我有一个代码,我从 javascript 传递一个函数 exportManager.RegisterCallbacks(function(progress) {
我已经创建了基于 Firebreath 框架的插件。实现事件以实现插件的正确功能。 Firebreath 事件从以下方法的 JSAPIAuto.cpp 类异步触发: void FB::JSAPIAut
我今天在 Firebreath 中发现了一个非常奇怪的错误。我试图编译我的项目,做了一个 make在我的构建目录中。我收到了 huge output有很多错误。我尝试从头开始运行一个新项目,但出现以下
源代码已在 Fedora 15,16 和 Ubuntu 10,11,12 中测试,没有问题。 但是在Fedora 17中,文件写入功能不起作用。 1) int fd; if ( 0 /home/tes
我正在使用 FireBreath 开发 Web 插件,我是这方面的新手。到目前为止,我已经开发了相当复杂的插件 API 类(具有已注册的方法、属性和一些其他变量和结构)。我正在使用 javascrip
由于 NPAPI 实际上 100% 使用编译的二进制文件,因此希望构建同时包含所有平台代码的插件,因此交叉编译成为 NPAPI 框架构建系统的优先功能是有意义的。但是,当我尝试从 mac os x 交
我已经使用 firebreath 构建了示例插件。现在我打算编写一个插件来捕获网页中的所有事件。 请帮助如何使用 firebreath 做到这一点? 谢谢。 最佳答案 您不能在插件中捕获页面事件;插件
当我关闭浏览器 (iexplore.exe *32) 时,我在任务管理器中看到它的僵尸。我怀疑内存泄漏或其他阻止浏览器关闭的坏deinit。我如何调试和跟踪这些泄漏?我在 Windows 上使用 vi
Winapi 新手。学习 winapi 的基础知识和在 firebreath 插件中创建子窗口的技巧。搜索教程,得到答案。但不知道我在这里做错了什么?以下是我的>我的主要目标是在父插件(窗口式 fir
我正在使用 Firebreath 构建一个插件。我在 ABCPluginAPI.cpp 中创建了一个名为 exe_program() 的个人方法,我想使用名为 my_program 的 popen 调
我在这里问了一个问题Get mouse screen coordinates on click并得到了一个很好的答案(已确认),感谢 Gaurav Raj。在这个示例中: bool MirrarOrn
我可以通过该页面上的插件以某种方式禁用我网页上用户的所有键盘输入吗? (使用 FireBreath 编写的插件) 我不需要它让用户无法在某些特定的输入字段中输入(我知道,它可以通过另一种更简单的方式实
我可以知道如何使用 Firebreath 插件框架在主线程上创建周期性计时器回调吗?我试过 FB::Timer::getTimer(1, true, EventRunLoop);在 StaticIni
我已经开始获取 ICE38(组件安装到用户配置文件。它必须使用 HKCU 下的注册表项作为其 KeyPath,而不是文件。)构建我的 firebreath 插件时出错。这是导致它的文件:
我有一个插件,我想阻止浏览器关闭,因为我正在保存一些需要未知随机时间的数据。 data_ready = false; data_ready = saveData(); //using a random
我跟着firebreath opengl Firebreath Opengl教程,它可以工作,但是当我调整页面大小时或滚动页面时它开始闪烁,所以我在网上搜索了解决方案,但除了一个小提示外,我没有找到任
最近我一直在试验 Firebreath 并开发了一个插件,以便在我的投资组合网站上展示我的 C++ 项目。如果我的网站上有新项目,我想让用户无需下载文件即可轻松查看项目。 此时我遇到的唯一问题是,当用
我是一名优秀的程序员,十分优秀!