Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ debuger
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Proto-6
Canada (26 posts) Bio
|
| Date
| Thu 06 Feb 2003 04:44 AM (UTC) |
| Message
| | can any one hear sajest a good debugger for a newbie coder | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Thu 06 Feb 2003 09:16 PM (UTC) |
| Message
| The standard debugger with Unix or Cygwin is gdb (GNU debugger) however it can be a bit daunting. There are some posts on this forum showing how to use it, you could search for those.
If you are using Microsoft Visual C++ it has a nice debugger that lets you set breakpoints and evaluate variables.
Finally, a simple debug technique that often works is to simply put "printf"s inside your code while you are testing it.
eg.
printf ("Variable A is now %i\n", A);
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,679 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top