Menu

dev cpp watch

dododeu
2007-11-22
2012-09-26
  • dododeu

    dododeu - 2007-11-22

    the watch doesn't work well.
    What is the problem ?
    When i press F8 it goes thru all the program and stops at the end . It doesn't go step to step even i press te button "next step"

     
    • Kurgusov

      Kurgusov - 2007-11-22

      Dont even use dev-cpps debugger its crap and more hassle than its worth.
      There are lots out their that actually work that you can use in place of it.

       
    • dododeu

      dododeu - 2007-11-23

      Can you give me some examples ?

       
      • Wayne Keen

        Wayne Keen - 2007-11-23

        The thread titled "PLEASE READ BEFORE POSTING A QUESTION" has a section on getting
        started with the debugger, have you read that?

        Wayne

         
    • Kurgusov

      Kurgusov - 2007-11-23

      MS-Visual c++'s debugger does a fine job.

       
    • dododeu

      dododeu - 2007-11-23

      yes yes i have read it
      i put a comment there to

       
      • Wayne Keen

        Wayne Keen - 2007-11-24

        Please post your Basic 3 for a simple as possible test case that shows
        the problem you are having.

        Wayne

         
        • dododeu

          dododeu - 2007-11-24
          1. Win xp , dev cpp 4.9.9.2

          include "lista.h"

          include <iostream.h>

          lista::lista(void)
          {
          head = NULL;
          }
          lista::~lista()
          {
          destroy(head);
          }

          lista::lista(lista &l1)
          {
          nod *r = l1.head;
          addbeg(r -> elem());

          while(r -&gt; urm != NULL)
          {
              addend(r -&gt; elem());
              r = r -&gt; urm;
          }
          

          }

          void lista::destroy(nod p)
          {
          nod
          temp = p;
          while(temp)
          {
          temp = p -> urm;
          delete p;
          p = temp;
          }
          }

          void lista::addbeg(int el)
          {
          head = new nod(el, head);
          }

          void lista::addend(int el)
          {
          nod *p = head;

          if(head == NULL)
          {
              addbeg(el);
              return ;
          }
          
          if(p -&gt; urm != NULL)
          {
          while(p -&gt; urm != NULL)
              p = p -&gt; urm;
          
          p -&gt; urm = new nod(el, NULL);
          }
          
          if(p-&gt;urm == NULL)
              p-&gt;urm = new nod(el, NULL);
          

          }

          void lista::print(void)
          {
          nod *p = head;
          if(p != NULL)
          {
          cout << "L = { ";
          while(p != NULL)
          {
          cout << p->elem() << " ";
          p = p -> urm ;
          }
          cout << " }" << endl;
          }
          else
          cout << " Lista vida !" << endl;
          }

          void lista::delbeg(void)
          {
          nod *p = head;
          head = head -> urm ;
          delete p;
          }

          void lista::delend(void)
          {
          nod p = head;
          nod
          cp;
          while(p -> urm != NULL)
          {
          cp = p;
          p = p -> urm ;
          }
          cp -> urm = NULL;
          delete p;
          }

          int lista::retbeg(void)
          {
          if(head)
          return head -> elem();
          return -1;
          }

          int lista::retend(void)
          {
          nod *p = head;
          while(p -> urm != NULL)
          p = p -> urm;
          if(p)
          return p -> elem();
          return -1;

          }
          //END
          it's a sample of metods from a class called lista

          3.
          Compiler: Default compiler
          Building Makefile: "D:\faculta\anu 2 calculatoare\poo\lab5 reloaded\Makefile.win"
          Executing make...
          make.exe -f "D:\faculta\anu 2 calculatoare\poo\lab5 reloaded\Makefile.win" all
          g++.exe -c fct.cpp -o fct.o -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" -g3 -O0

          In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31,
          from fct.cpp:2:
          C:/Dev-Cpp/include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.

          g++.exe fct.o main.o -o "Project1.exe" -L"C:/Dev-Cpp/lib"

          Execution terminated
          Compilation successful

          i can't get the debugger go step by step,
          i have put breakpoint ,it doesn't stop till the end

           
    • dododeu

      dododeu - 2007-11-23

      another problem is that , i can not put a variable in the watch
      i press addwatch, then i introduced the variable ,pressed enter many times , but it doesn't appear

       
    • dododeu

      dododeu - 2007-11-23

      can the developers make the watch behave like the borland c++ 3.1 watch ?

       

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.