Eclipse CDT调试(外部过程)并查找其源代码 [英] Eclipse CDT Debugging (An External Process) and Finding Its Source Code

查看:329
本文介绍了Eclipse CDT调试(外部过程)并查找其源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用Eclipse CDT调试外部进程时,我可以附加到它,但是我无法获得调试配置来找到原始的C源。当我使用Eclipse中运行的进程启动调试器时,我可以让调试器找到源代码。

When I attempt to debug a external process with Eclipse CDT, I'm able to attach to it, but I cannot get the debug configuration to find the original C source. When I launch the debugger with the process running within Eclipse, I can get the debugger to find the source code.

只有当连接到外部进程时,CDT找不到。它只是显示拆卸的代码的内容。问题是,进程处理来自命令行的输入,我似乎没有找到一种方法在Eclipse CDT中启动调试器,并允许我输入输入。

It is only when attaching to an external process that CDT doesn't find it. It simply sits content with showing the disassembled code. The problem is that the process handles input from the command line, and I don't seem to find a way to launch the debugger within Eclipse CDT and allow me to enter input.

我正在使用Eclipse CDT(Helios)和Cygwin 1.7.1 btw。

I'm using Eclipse CDT (Helios) and Cygwin 1.7.1 btw.

推荐答案

如果你的原始目标是将参数传递给调试器(而不是找到源代码,你可以在Eclipse中通过转到 Run - >调试配置并选择 Arguments 选项卡,您可以在其中键入应用程序的输入参数。

If your original goal is to pass arguments to the debugger (and not finding the source code, as your title implies), you can do it in Eclipse by going to Run -> Debug Configurations and selecting the Arguments tab, in which you can type the input arguments to your application.

这篇关于Eclipse CDT调试(外部过程)并查找其源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆