程序忽然不能设置断点
我的程序忽然不能设置断点,设置断点后老是提示one or more breakpoints can not be set and have been disabled,execution will stop at the beginning of program. 紧接着就进入到这里不动了!不知道为什么,那位能帮我答疑,不甚感激!
extern int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow);
extern "C" int WINAPI
_tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
// call shared/exported WinMain
return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}
注:我是debug版本!
网上有人说:::::
现象是用 debug中的 step info或者run to cursor合着设置断点会出现One or morebreakpoints cannot be set and have been disabled. Execution will stopat the beginning of the program.解决方法,
1.在project->setting->c/c++-general->debug info->program databse for edit and continue ;
2.edit->breakpoints->removeall;
3.build->set active project configuration->*.exe win32 debug.
经过以上三步,ok!
但是我这样还是不行
到底什么原因啊