Basic C-prog.....is there any debugger who can tell whats the mistake in my 300-400 lines of code,i will MAIL?
?
2010-04-11 22:53:49 UTC
mail you the prog ifff u r ready..........
plz-plz-plz
Four answers:
Gopinath M
2010-04-13 11:50:18 UTC
i try
mgopi1990@yahoo.co.in
AnalProgrammer
2010-04-12 02:16:23 UTC
If you don't want to install another compiler then you could just add printf to the program to show the variables. Make it a function and you can turn it on or off with a global variable but leave the function calls in place.
Alternatively, Dev-C++.
Netbeans with the C++ option (This is more complicated as you have to add your own compiler).
Microsoft visual studio C++.
Have fun.
Tejas
2010-04-11 23:06:46 UTC
If you are good in c prog then you should use the c compiler which is present in it self for finding errors.
Because though you use any other, the errors is to be solved by you only, so use c compiler.
?
2010-04-11 23:26:58 UTC
gdb is in-build linux debugger.
for enable it compile with -g flag
example -
step 1:
gcc -g -o test test.c (so here test is exc. file)
step 2:
gdb ./test and press enter it's show gdb console
step 3:
set a break point from where you want to see the execution i.e
b 10 and press enter ( b 4 break and 10 is the line no.)
step 4:
press r (r means run the program)
step 5:
press s (s for step by step) you can see line by line
note :lots of command also their like n(next),c(continue),bt (backtrace) for that know have to know it.i think it's help you to fix your problem.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.