IN LINUX REDHAT OR UBUNTU ,USING TERMINAL ,,,,,USING GDB DEBUGGER WE CAN DEBUG CUSTOM PROGRAMMS AT RUNTIME.
THE STEP BY STEP PROCESS IS :
VI FILENAME.C
AND NEXT COMPILATION DONE BY
-G CC FILENAME.C
AND OUTPUT SHOULD BE SEEN IN GDB SHELL
-GDB ./A.OUT
AND PROGRAMM OPENS IN GDB DEBUGGER AND
PRESS "BREAK" WHERE BREAK POINT EXISTS IN YOUR PROGRAMM
CONTINUE IS TO CONTINUE ,,,AND N AND ENTER FOR NEXT STEP
PRINT A IS FOR PRINTING THE VALUE IN A.......
No comments:
Post a Comment