调试时出现please enter the path for 对话框
2009-03-05 10:51
393 查看
VC调试程序的一种方法是跟踪到函数内部,观察函数是否按照设想的逻辑在执行。这可以通过在函数调用处设置断点,在中断后使用step into(F11为功能快捷键)功能实现。但有时在你按F11后,会出现“please enter the path for 某源文件”的对话框,如果你选择cancel,就进入了汇编模式,这通常不是我们希望的。
解决这个问题要根据要求的源文件进行分类,如果应该是VC自带的源文件,比如ATOX.C,PRINTF.C, ASSERT.C等,都属于C运行库的范畴。这时要选择VC安装目录下的C运行库的源文件夹,通常是:
C:/Program Files/Microsoft Visual Studio/VC98/CRT/SRC
如果提示说该文件找不到,那你要找到VC的安装盘,把VC98/CRT/SRC中的全部文件复制到C:/Program Files/Microsoft Visual Studio/VC98/CRT/SRC。
如果不是VC自带的源文件,就只有自己想办法了。
后记:写本文的主要驱动因素是我发现网上对于这个问题有很多错误答案,会误导大家。比如百度知道中的:
问题:用vc++一步一步调试程序时到打印时要选择路径 please enter the path for printf.c
百度最佳答案:你用了F11(step into)跟进的吧,这样的话遇到库函数就会出现这样的问题,因为库函数已经存在于lib文件中了,printf.c这样的源代码文件当然不在了(这句严重误导大家!). 建议用F10跳过库函数。
问题:vc++6中的用按F11运行时怎么总出现PLease enter the path for ...对话框?
百度最佳答案:那些C++自带的库函数,如printf,memset等,你最好还是F10跳步过去吧,F11的话就会出现这个情况(这句严重误导大家!)
解决这个问题要根据要求的源文件进行分类,如果应该是VC自带的源文件,比如ATOX.C,PRINTF.C, ASSERT.C等,都属于C运行库的范畴。这时要选择VC安装目录下的C运行库的源文件夹,通常是:
C:/Program Files/Microsoft Visual Studio/VC98/CRT/SRC
如果提示说该文件找不到,那你要找到VC的安装盘,把VC98/CRT/SRC中的全部文件复制到C:/Program Files/Microsoft Visual Studio/VC98/CRT/SRC。
如果不是VC自带的源文件,就只有自己想办法了。
后记:写本文的主要驱动因素是我发现网上对于这个问题有很多错误答案,会误导大家。比如百度知道中的:
问题:用vc++一步一步调试程序时到打印时要选择路径 please enter the path for printf.c
百度最佳答案:你用了F11(step into)跟进的吧,这样的话遇到库函数就会出现这样的问题,因为库函数已经存在于lib文件中了,printf.c这样的源代码文件当然不在了(这句严重误导大家!). 建议用F10跳过库函数。
问题:vc++6中的用按F11运行时怎么总出现PLease enter the path for ...对话框?
百度最佳答案:那些C++自带的库函数,如printf,memset等,你最好还是F10跳步过去吧,F11的话就会出现这个情况(这句严重误导大家!)
相关文章推荐
- 调试时出现please enter the path for 对话框
- vc++调试出现输入框:please enter the path for DBGHEAP.C的解决办法
- windows下 安装后的 Oracle SQL Developer 不能用,出现一个对话框提示:Enter the full pathname for java
- windows下 安装后的 Oracle SQL Developer 不能用,出现一个对话框提示:Enter the full pathname for java.exe
- VMware Workstation的Ubuntu虚拟机中安装VMWare Tools出现提示:Enter the path to the kernel header files for the 3.
- VC6.0的一个小问题:please enter the path for DBGHEAP.C
- oracle sql developer怎么打不开呢,出现enter the full pathname for java.exe
- VC6.0的一个小问题:please enter the path for DBGHEAP.C
- git 删除文件时出现:please enter the commit message for your changes
- studio 真机调试时出现“Application xxxx waiting for the debugger to attach”
- Please enter the correct username and password for a staff account. Note tha
- win7中IIS7.0 调试出现错误 The IIS worker process for the launched URL is not currently running的解决办法
- 每次打开word都出现一个对话框:The MathType DLL cannot be found.Please reinstall mathtype.
- 解决yum安装出现错误:Cannot retrieve metalink for repository: epel. Please verify its path and try again
- sql developer 要求enter the full pathname for java.exe
- 修改源出现的问题Cannot retrieve metalink for repository: fedora. Please verify its path and try again
- delphi 10.1编译项目的时候出现MSBuildToolsPath is not specified for the ToolsVersion解决办法
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- VMtool安装,Enter the path to the kernel header files for the。。。。
- iOS 真机调试 出现process launch failed: timed out waiting for app to launch 和 failed to get the task for 的