Eclipse CDT无法在同一目录中调试进入功能定义 [英] Eclipse CDT cannot debug to step into function definition in same directory
问题描述
项目/ simpleClient / simpleClient.cc
调用项目/ src / somefile.cc
。当我把一个调试器放在simpleClient.cc中,并调用函数A时,我只知道右键单击函数名将会带我去函数定义,但我实际上想要进入src文件夹代码,看看程序如何运行。有什么办法吗 谢谢。
在下运行 - >调试配置 - > [您的调试配置]
,单击源
选项卡,看看项目和所有关联的子目录是否在源搜索路径中。
这就是Eclipse CDT工具在调试时找到要显示的源代码,所以很可能,在这个路径上找不到该文件。
我认为默认情况下,该工具会在项目目录中搜索所有来源,因此有可能阻止其找到。
另外,如果你在Windows中运行,使用Cygwin,您可能会遇到问题在此描述 。如果是这样,提供的说明应该修复映射,并让您看到来源。
I am new to eclipse cdt. I did a little research but did not find an answer. I wonder, say I have a project/simpleClient/simpleClient.cc
that calls functions under project/src/somefile.cc
. When I put a debugger in simpleClient.cc, and call function A, I only know by right clicking the function name will take me to the function definition, but I actually want to step into it to the src folder code and see how the program runs. Are there any ways please?
Thank you.
Under Run -> Debug Configurations -> [Your debug config]
, click the Source
tab and see if the project and all associated subdirectories are in the source search path.
That's how Eclipse CDT tools find the sources to display while debugging, so chances are, the file is not being found on this path.
I think by default, the tool searches the project directory for all sources, so something else is likely preventing it from being found.
Also, if you're running in Windows, using Cygwin, you might have the problem described here. If so, the instructions provided should fix the mapping and let you see your sources.
这篇关于Eclipse CDT无法在同一目录中调试进入功能定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!