Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Good debugging tool on linux

Status
Not open for further replies.

italy

Programmer
Feb 13, 2001
162
US
Hi guys I need your advise about what tool should I use to compile and debugg especially I will work on linux environment and also more clear debugging tool I find it defecault to debug in linux environment not like windows in borland u now what I mean?
great thanks in advance
 
ddd (/usr/bin/ddd) is the graphical front-end to gdb
 
thks salem for your reply but I searched on my redhat machine and I did not find ddd how do I run this program can u explain please
 
I guys I installed ddd but still has a problem to open any file it error message "there is no init.c file in the directory " any solution

thks
 
If you do

Code:
gcc -ggdb -o myprog myprog.c
ddd myprog

Do you get a window showing your source code starting at your main() function?
 
No salem the first line and give me an error linker error
"linker input file unused since linking not done"

 
So how is this a ddd problem if you can't even compile your source code?

Or was that your original problem - that you couldn't compile the code because of some compile time or link time errors.
 
salem thanks for the reply but I used the o switch instead of c which just compile and it worked fine but if you dont mind I have another problem and u r the problem solver every time I run my program asking me to enter avalue of vairable k it deos not processess it right a way I had to enter the value twice in order to continue and that is effecting the value of k and then the program any work around it thks man
 
Ok, so this sounds like a totally new question then.
So post your code in a new thread and ask your question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top