12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Us<strong>in</strong>g the Debugger<br />

Day 11<br />

Us<strong>in</strong>g the Debugger<br />

by Kent Reisdorph<br />

Week<br />

A major feature of the <strong>C++</strong>Builder IDE is the <strong>in</strong>tegrated debugger. The<br />

debugger allows you to easily set breakpo<strong>in</strong>ts, watch variables, <strong>in</strong>spect objects,<br />

and much more. The IDE debugger allows you to see what is go<strong>in</strong>g on <strong>in</strong> your<br />

program while the program runs. Us<strong>in</strong>g the debugger you can quickly f<strong>in</strong>d out<br />

what is happen<strong>in</strong>g (or not happen<strong>in</strong>g) with your program as it runs. A good<br />

debugger is vital to efficient program development.<br />

Debugg<strong>in</strong>g is one of those th<strong>in</strong>gs that is easy to overlook. Don’t tell anyone, but<br />

when I first started W<strong>in</strong>dows programm<strong>in</strong>g (not with <strong>C++</strong>Builder, of course)<br />

I ignored the debugger for a long time because I had my hands full just learn<strong>in</strong>g<br />

how to do W<strong>in</strong>dows programm<strong>in</strong>g. When I found out how valuable a good<br />

debugger is, I felt a little silly for cheat<strong>in</strong>g myself out of the use of that tool for<br />

so long. Oh well, live and learn. You have the luxury of learn<strong>in</strong>g from my<br />

mistakes. Today you will learn about what the debugger can do for you.<br />

2<br />

393<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!