Author Topic: Debug  (Read 3407 times)

fig79

  • Guest
Debug
« on: July 25, 2009, 04:26:20 pm »
I want to learn C language,
Could you explain to me step by step, how to debug the C program please?
I mean like Visual Basic debugger function, for example

1. Private Sub Command1_Click()
2. If Text1.Text = 3 Then
3.        Text2.Text = "Three"
4.    Else
5.        Text2.Text = "Not Three"
6.    End If
7. End Sub

first, in line 1 : add breakpoint
second, if i press F8 button, then line 1 is highlighted, once more time press F8 button, line 2 is highlighted and so on.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Debug
« Reply #1 on: July 25, 2009, 04:46:01 pm »
First of all buy yourself a good C/C++-book or search for a good online tutorial (you can search the forum or the internet for a tutorial).

Please don't ask any questions not related to C::B in this forum, those topics will most likely be locked or even silently removed, you are warned !
Before you ask questions try to fix the problem yourself with searching the forum and/or the internet, otherwise your forum will most likely ... (see above).
If you ask, please post your OS, your compiler and version, the toolkits you use (version) and of course (most important) the version of C::B you use (maybe the svn-revision if it is a nightly) and the exact error message.

Read this wiki-article: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks and of course you might want to read the Code::Blocks manual to know how to create a sample project with the wizard and how C::B in general works: http://www.codeblocks.org/user-manual.