Menu

Can't debug

2005-01-30
2012-09-26
  • Nobody/Anonymous

    I have Dev-C++ 4.9.9.1 running on WindowsXP Pro.

    When I try to debug a project, I get the "your project does not have debugging information..." message. I say "Yes" to rebuild with debug info, but I still get the message when I select "Debug."

    My complier options are set to generate debug info and not optimize. The project compiles and executes fine if I don't use the deugger.

    What do I need to do to allow debugging?

    -Thanks!

     
    • Anonymous

      Anonymous - 2006-04-17

      If debugging is switched on for the project, the -g3 option will appear in the compiler invokation in the Compile Log as in Wayne's example, but not in yours.

      Answering 'yes' to the "your project does not have debugging information..." message has no effect, this is a known bug.

      If you are using the 'project' manager, you must set the debug option in the Project options, not the Compiler options.

      Clifford

       
    • Wayne Keen

      Wayne Keen - 2005-01-30

      There is a section in the thread titled "The Forum FAQ - Please Read First" on getting started with the debugger that should be quite helpful. (It has many more helps as well). Check it out.

      Wayne

       
      • Nobody/Anonymous

        The section titled "The Forum FAQ - Please Read First" on getting started with the debugger is not working.

         
        • Wayne Keen

          Wayne Keen - 2006-04-17

          How exactly is it not working?

          Basic 3? Description of what you are doing during the debug?

          The idea is that you want to convey enough information with your question such that we can see about duplicating exactly what you are seeing here at home. This is the best way to address your question (in general, not just for this question).

          Wayne

           
          • Wayne Keen

            Wayne Keen - 2006-04-17

            I reproduced the test case that is in the getting started section just now. I am running Dev version 4.9.9.2 on XP Pro

            The source code is:

            include<iostream>

            using namespace std;
            int main(void)

            {
            int j;
            for (int i = 0; i <= 10; i++)
            {
            cout << "This is what that idiot wayne said to do\n";
            j = i + 3;
            }
            system("pause");
            return 0;
            }

            My compile log looks like this (note this is a single file compilation, not a project):

            Compiler: Default compiler
            Compiler: Default compiler
            Executing g++.exe...
            g++.exe "C:\Dev-Cpp\testde.cpp" -o "C:\Dev-Cpp\testde.exe" -g3 -O0 -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
            Execution terminated
            Compilation successful

            I was able to put a breakpoint at the cout statement, and after starting the debuggger by going to debug:debug, the code ran to the breakpoint. Hovering the cursor over i and j after running to the breakpoint gave me watches on i and j.

            How is this behaving differently than what you are seeing?

            Wayne

             
    • aditsu

      aditsu - 2005-01-31

      if you still have that error, can you please post your compile log, project file (.dev) and your devcpp.ini file?

      Adrian

       
      • Nobody/Anonymous

        I'm having the same problem...

        thanks
        Eric Rosales
        IPN-UPIICSA-SEPI

         
        • Wayne Keen

          Wayne Keen - 2005-04-21

          Eric,

          And what from the earlier posts in this thread did you do to address your problem?

          Wayne

           
    • dmarquisii

      dmarquisii - 2005-04-27

      I'm have the same problem. I have Dev C++ 4.9.9.2, runniing on Windows 2K Pro and XP.

      I've checked the debug info tab in Compiler Options and it checks out, as recommended.

      Just using the following problem (the template main.c) gives the same thing.

      include <stdio.h>

      include <stdlib.h>

      int main(int argc, char *argv[])
      {

      system("PAUSE");
      return 0;
      }

      The log is:

      Compiler: Default compiler
      Building Makefile: "C:\Dev-Cpp\Makefile.win"
      Executing make clean
      rm -f DebugProb.o "Debug Problem.exe"

      gcc.exe -c DebugProb.c -o DebugProb.o -I"C:/Program Files/National Instruments/CVI70/tutorial" -I"C:/Program Files/National Instruments/CVI70/include" -I"include"

      gcc.exe DebugProb.o -o "Debug Problem.exe" -L"lib"

      gcc.exe DebugProb.o -o "Debug Problem.exe" -L"lib"

      Execution terminated
      Compilation successful

      Thanks

       
      • Wayne Keen

        Wayne Keen - 2005-04-27

        I don't mean to sound like a broken record, but did you check out the section in the FAQ thread in this forum on getting started with the debugger? (As I mentioned earlier in this thread). The getting started section talks about setting debugging options manually. This is important as your log does not indicate the debuggin has been turned on.

        Your log is also very strange. Are you using Dev as an IDE for a compiler you got someplace else?

        gcc.exe -c DebugProb.c -o DebugProb.o -I"C:/Program Files/National Instruments/CVI70/tutorial" -I"C:/Program Files/National Instruments/CVI70/include" -I"include"

         
        • dmarquisii

          dmarquisii - 2005-04-27

          Yes, I have checked the FAQ thread and made the noted changes to no improvement.

          And, no, I'm not using a third-party compiler. I'm using the compiler from Bloodshed. The added directories are for libraries only (include files) provided by a third-party only.

           
    • Wayne Keen

      Wayne Keen - 2005-04-27

      "Yes, I have checked the FAQ thread and made the noted changes "

      That is not what your log shows. I see no -g3 -O0 there. Where did you add those options?

      Wayne

       
    • Nobody/Anonymous

      I think there is a bug in the "automatic" debug mode. If you add the debug switches manually (in the compiler options window) all works fine. On the other hand, if you let the program to set by himself the debug mode, after clicking on the debug button, there are problems with projects started with the template, while the projects in the example directory work fine. I think that there is a parameter in the .dev file created from the template which prevents a correct setting of the debug mode.

       
    • Nobody/Anonymous

      I'm having the same problem.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.