在 Eclipse 中使用 localhost 作为目标使用 EDC-TCF 进行调试
正如题目所说。我正在尝试使用 TCF 作为调试器来启动 C/C++ 项目的调试会话。 这就是我所做的,(我在 windows xp 上)
- 我创建一个 C/++ 项目,使用 mingw32-make.exe 构建它并生成 一个二进制文件。
- 然后我按“调试为”->“调试配置”->“目标通信框架”
- ,在其中指定项目名称,并在“本地文件路径”框中给出 C/C++ 项目二进制文件的绝对路径。
- 由于我正在执行本地主机,所以我在远程文件路径中没有提供任何内容。
- 然后我运行一个TCF代理(可以通过构建TCF代理源来获得)。
- 在调试配置的目标选项卡中,我选中“使用 localhost 作为目标”。
- 最后按“调试”。
现在,当会话启动时,我收到 tcf nullpointerException,并且会话甚至没有启动。 有人做过这种类型的调试吗?
As the topic says. I am trying to start a debug session of a C/C++ project with TCF as the debugger.
This is what I do, (I am on windows xp)
- I create a C/++ project, build it using mingw32-make.exe and generate
a binary. - Then I press Debug As->Debug Config->Target Communications Framework
- In that, I specify the project name, and in the Local File Path box i give the absolute path of the C/C++ project's binary.
- I give nothing in the Remote File Path since I am doing localhost.
- Then I run a TCF agent (which can be obtained by building TCF agent source).
- In the target tab in the debug config, I check "Use localhost as a target".
- And finally press Debug.
Now when the session starts, I get a tcf nullpointerexception and session doesnt even start.
Has anyone done this type of debugging?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用 mingw 编译了项目,使用 tcf 进行本地调试是没有意义的,只需使用 CDT 的默认调试器 gdb ,在调试器选项卡中指定 gdb(mingw/bin/gdb) 的完整路径,顺便说一句,一切都应该没问题
。我只是像您一样进行了 tcf 本地调试,它有效,只是我使用 msvc 工具链编译了我的项目。也许这就是你的问题
You compiled your project using mingw, there's no point in using tcf to do local debugging, just use CDT's default debugger gdb , specify full path to gdb(mingw/bin/gdb) in your debugger tab, and evertything should be ok
BTW. I just did a tcf local debugging as you did, it worked, only that I compiled my project using msvc toolchain. Maybe that's your problem