~~~~VC无法设置断点,请问如何解决?

来源:百度知道 编辑:UC知道 时间:2024/05/04 14:35:11
我往一个工程里面设断点按F5后提示
'f:\***\***\***.exe'does not contain debugging information.Press OK to continue.
然后 one or more breakpoints cannot be set and have been disabled
.Execution will stop at the beginning of the program.
请问解决的办法是什么???
为什么设置断点的地方不对呢,我设置在函数开始的地方了

1、可能是你采用release方式运行,不能包含调试信息。
解决方案:
在工具条上点右键,显示出“build”工具条,工具条中第二个下拉框将“Win32 Release”换成“Win32 Debug”

2、可能是你的断点设置位置不正确,