我的程序忽然不能设置断点,设置断点后老是提示one or more breakpoints can not be set and have been disabled..... 紧接着就进入到这里不动了!不知道为什么,那位能帮我答疑,不甚感激!
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版本!

解决方案 »

  1.   

    有可能是在debug时添加了新的代码行,要stopdebug之后重新编译一下,或则可以先clean然后Rebuild All,再debug
      

  2.   

    现象是用 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!
      

  3.   

    谢谢各位热心朋友给我的答复和建议!我都CLEAN了好多次了,没用!2楼的方法,我刚刚试过了,不行!我现在在DEBUG和RELEASE下都不能设置断点了,郁闷的很!3楼的师傅,我的代码确实也长,可是之前的都可以啊!我顶多也只修改了几行!怎么就不行了!而且现在老是跑到Winmain那里就不动了,搞得我现在只能靠自己在脑子里运行程序了,!各位师傅可有什么别的方法,可否再指教一下小弟!
      

  4.   

    是VC6么?
    我也遇到过这种情况你把整个debug文件夹删除再试试,
    如果不行就重启工程。再不行就把源文件和资源文件拷出来,
    重新建一个工程,把考出来的源文件和资源文件添加进去按照这种方法,即使不知道原因,也能通常能够解决问题
    如果时间比较紧,可以尝试一下
      

  5.   

    1 Clean
    2 rebuild
    3 alt+F9,把所有断点都清除(remove all)