Pgdbg: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 25: Line 25:
To be able to debug with pgdbg you first need to compile your code with debugging information enabled. With the pgdbg you do so by adding a debugging flag "-g":
To be able to debug with pgdbg you first need to compile your code with debugging information enabled. With the pgdbg you do so by adding a debugging flag "-g":
{{Command|pgcc -g program.c -o program}}
{{Command|pgcc -g program.c -o program}}
== Executing your code ==
Once your code is compiled with the proper options, you execute it:
{{Command|pgdbg program arg1 arg2}}


== Command-line mode ==  
== Command-line mode ==  
<br><br>'''Analysis''':  
<br><br>'''Analysis''':  
Once your code is compiled with the proper options, you execute it:
Once your code is compiled with the proper options, you can run the PGDBG for the analysis. The debugger's default user interface is a graphical user interface or GUI. However, if for some reasons you don't want to run in GUI or don't have X11 forwarding, you can run pgdbg in a text mode by adding an extra option "-text" :
{{Command|pgdbg program arg1 arg2}}
{{Command|pgdbg -text program arg1 arg2}}


== Graphical mode ==
== Graphical mode ==
Bureaucrats, cc_docs_admin, cc_staff
337

edits

Navigation menu