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"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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"
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.
Can you give me some examples ?
The thread titled "PLEASE READ BEFORE POSTING A QUESTION" has a section on getting
started with the debugger, have you read that?
Wayne
MS-Visual c++'s debugger does a fine job.
yes yes i have read it
i put a comment there to
Please post your Basic 3 for a simple as possible test case that shows
the problem you are having.
Wayne
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());
}
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;
}
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
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
can the developers make the watch behave like the borland c++ 3.1 watch ?