Skip to content

Debugging


The debugger is in the bin\win32 or bin\dos directories (the GDB.EXE file), for the Windows and DOS versions respectively. It usually comes already installed in most Linux distros.

(Note: all commands should be typed without quotes and then [return] must be pressed.)

  • Compile the source code for your program in debug mode

  • Load your compiled program in GDB

  • Set any arguments you want to send to your application

  • Ensure GDB can see your program's source code directory

  • Set a breakpoint in your program

  • Use GDB shortcuts to run your code or to step through it

  • Use GDB shortcuts to inspect variables

  • Additional commands:

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft