可以将调试会话附加到eclipse CDT中的正在运行的程序 [英] Is it possible to attach a debugging session to a running program in eclipse CDT
问题描述
我记得在AIX中做类似的操作,可以使xldb附加到正在运行的进程。是否可以让eclipse运行gdb来附加到运行的二进制文件?
我应该期待悲伤,因为我想调试一个动态加载的代码段?
是的。您需要进入Lauch Configuration对话框并选择C ++ Attach to ...。根据您的Eclipse版本,可能只有一个或多个C ++附加到...变体。
I'm writing a netscape iplanet plugin (on solaris/C using eclipse) which is basically a shared object with specific entry points, and I'd like to be able to debug the shared object with eclipse's debugger (gdb). I remember doing something similar in AIX where you could make xldb attach to a running process. Is it possible to get eclipse to run gdb to attach to a running binary? And should I expect grief because I want to debug a dynamically loaded piece of code?
Yes it is. You need to go to the Lauch Configuration Dialog and select "C++ Attach to ...". Depending on your Eclipse version there may be only one or more "C++ Attach to ..." variants available.
这篇关于可以将调试会话附加到eclipse CDT中的正在运行的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!