Syntax

-g

Description

The -g option instructs the compiler and assembler to generate debugging information (line numbers and data type information) for the debugger to use and instructs the linker not to strip that debugging information.

Project property

Build Options > Include Debug Information