每次我调试都说 " one or more breakpoint cannot be set and have been disabled.Execution will stop at the beginning of the program"
谁能告诉我该怎么做才能在程序中设置断点?谢谢!!!!

解决方案 »

  1.   

    只有Debug版本的程序才可以设断点!
      

  2.   

    Set the full path of debug!
    Maybe u attempts to set breakpoints in a DLL before the call to LoadLibrary!:::
    (from msdn)
    The reason you are getting the dialog box is...
    You have tried to set break point in a DLL that is not included in the Additional DLL under the Debug option for your project setings. The debug info is obtained from PDB file. Bydefault, IDE only knows about the PDB of your current project. Incase you are trying to set the break point in a DLL that is other than the active one, you have to specify this exclusively in Additionl DLL combo box. Therefore add the DLL name there with full path name. Or you can make that project as active one and provide the EXE for debugging the one you are trying to run.
    The program won't stop at the start of program, infact it will act like that a break point has been set right at the start of the program. 
    IF you got the following error message box, there is nothing to worry about. Just include the DLL in Addition DLL under Debug option.---------------------------
    Microsoft Visual C++
    ---------------------------
    One or more breakpoints cannot be set and have been disabled.  Execution will stop at the beginning of the program.
    ---------------------------
      

  3.   

    晕啊,我是看别人的程序,里面只有一个win32 com版,没有什么release debug啊。我是用 vb程序来调试这个dll的。
    我自己写的dll就可以这样调试啊。那位高手就命啊!
      

  4.   

    费解。你能用VB来调试一个用VC写的DLL工程?
      

  5.   

    是用vc调试,不过调用程序是vb写的罢了
      

  6.   

    可以的。把VC程序设为debug模式,并设置调式程序(你VB写的)
    若调试程序下有这个DLL文件,先把它删除。祝你成功。
      

  7.   

    把VC程序设为debug模式,打开“Project”菜单,单击“Settings...."菜单项。在对话枉中选“Debug"菜单项,在“Executable for debug session”中填入链接该".dll"的".exe"程序,就可以调试了.
    记得到:http://www.anycities.com/user1/3jj/ 看一看,很多好东西哟。
      

  8.   

    与系统和调试工具有关,
    有些工具在nt,2000下可以,但在win98下又不行
      

  9.   

    http://expert.csdn.net/Expert/topic/1343/1343316.xml?temp=.643017
      

  10.   

    要不用
    _asm{ int 3 };
    线断下再说