Erorile de compilare sunt afisate in partea inferioara a ferestrei, in tabul "Build". Pentru a gasi usor eroare se poate da click pe eroare si cursorul va fi pozitionat pe linia unde a fost intampinata eroarea.
| !schimbare-borland/ghid/debug?debug_1.JPG 50%! | !schimbare-borland/ghid/debug?debug_2.JPG 50%! |
'!schimbare-borland/ghid/debug?debug_1.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_1.JPG '!schimbare-borland/ghid/debug?debug_2.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_2.JPG
Pentru a incepe debuggingul stabilim mai intai puctele de interes la care vrem ca programul nostru sa se opreasca pentru a putea vedea evolutia lui. Se aseaza cursorul pe liniile la care se doreste oprirea executiei programului si se marcheaza din meniu Debug->Toggle Brakepoint sau se tasteaza F9.
| !schimbare-borland/ghid/debug?debug_3.JPG 50%! | !schimbare-borland/ghid/debug?debug_4.JPG 50%! |
'!schimbare-borland/ghid/debug?debug_3.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_3.JPG '!schimbare-borland/ghid/debug?debug_4.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_4.JPG
Pentru a porni procesul de debug se selecteaza din meniu Debug->Go sau se tasteaza F5.
| !schimbare-borland/ghid/debug?debug_5.JPG 50%! | !schimbare-borland/ghid/debug?debug_6.JPG 50%! |
'!schimbare-borland/ghid/debug?debug_5.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_5.JPG '!schimbare-borland/ghid/debug?debug_6.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_6.JPG
Sageata galbena indica linia la care se afla executia programului.
Pentru a chestiona variabilele se deschide watch din meniu Debug->QuickWatch sau se tasteaza Shift+F5. In fereastra deschisa se pot tasta expresii care vor fi evaluate folosind datele din faza curenta de executie a programului (constante, variabile, functii)
| !schimbare-borland/ghid/debug?debug_7.JPG 50%! | !schimbare-borland/ghid/debug?debug_8.JPG 50%! |
'!schimbare-borland/ghid/debug?debug_7.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_7.JPG '!schimbare-borland/ghid/debug?debug_8.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_8.JPG
Pentru a face un pas peste o linie se face click pe Debug->Step Over sau se tasteaza F10. In cazul unei functii, daca se doreste sa debuggerul sa intre in apelul functiei, fara sa sare direct la evaluare ei se poate folosi Debug->Step Into sau se poate tasta F11.
| !schimbare-borland/ghid/debug?debug_9.JPG 50%! | !schimbare-borland/ghid/debug?debug_10.JPG 50%! |
| !schimbare-borland/ghid/debug?debug_11.JPG 50%! |
'!schimbare-borland/ghid/debug?debug_9.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_9.JPG '!schimbare-borland/ghid/debug?debug_10.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_10.JPG
'!schimbare-borland/ghid/debug?debug_11.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_11.JPG
Pentru a sari la urmatorul Brakepoint se poate face click pe Debug->Go sau se poate tasta F5.
| !schimbare-borland/ghid/debug?debug_12.JPG 50%! | !schimbare-borland/ghid/debug?debug_13.JPG 50%! |
'!schimbare-borland/ghid/debug?debug_12.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_12.JPG '!schimbare-borland/ghid/debug?debug_13.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_13.JPG
Pentru a opri procesul de debug se face click pe Debug->Stop Debugging sau se tasteaza Shift+F5.
| !schimbare-borland/ghid/debug?debug_14.JPG 50%! | !schimbare-borland/ghid/debug?debug_15.JPG 50%! |
'!schimbare-borland/ghid/debug?debug_14.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_14.JPG '!schimbare-borland/ghid/debug?debug_15.JPG 30%!':schimbare-borland/ghid/debug?action=download&file=debug_15.JPG