JavaSolarisCommunitiesAbout SunHow to BuyMy AccountCartUnited StatesWorldwide
Sun Microsystems Documentation
docs.sun.com
Browse Documentation Titles
Browse Product Documentation
Help

Debugging Options by Language

C Debugging Options

Option Meaning
-# Turns on verbose modes, showing how command options expand. Shows each component as it is invoked.
-### Shows each component as it would be invoked, but does not actually execute it. Also shows how command options would expand.
-E Directs the CC driver to only preprocess the C++ source files, and to send the result to stdout (standard output).
-g Instructs both the compiler and the linker to prepare the file or program for debugging.
-H Prints the path name of each include file contained in the current compilation to the standard error output.
-keeptmp Retains the temporary files that are created during compilation.
-P Only preprocesses source; does not compile.
-Q Emits identification information to the output file.
-s Strips the symbol table from the executable file.
-xcheck Enables a runtime check for stack overflow.
-xdebugformat Identifies the format of debugger information
-xdryrun Shows each component as it would be invoked, but does not actually execute it. Also shows how command options would expand.
-xe Checks only for syntax and semantic errors.
-xhelp Displays online help for compiler options or latest readme.
-xs Allows debugging by dbx without object files.
-xsb Generates extra symbol table information for the Source Browser.
-xsbfast Creates the database for the Source Browser, but does not actually compile.

C++ Debugging Options

Option Meaning
+d Prevents the compiler from expanding C++ inline functions.
-dryrun Shows each component as it would be invoked, but does not actually execute it. Also shows how command options would expand.
-E Directs the CC driver to only preprocess the C++ source files, and to send the result to stdout (standard output).
-g Instructs both the compiler and the linker to prepare the file or program for debugging.
-g0 Instructs the compiler to prepare the file or program for debugging, but not to disable inlining.
-H Prints the path name of each include file contained in the current compilation to the standard error output.
-keeptmp Retains the temporary files that are created during compilation.
-migration Explains where to get information about migrating source code that was built for earlier versions of the compiler.
-P Only preprocesses source; does not compile.
-Q Passes compiler options to a specific phase of the compilation process.
-s Strips the symbol table from the executable file.
-temp Defines the directory for temporary files.
-verbose Controls compiler verbosity.
-xcheck Enables a runtime check for stack overflow.
-xdebugformat Identifies the format of debugger information
-xdumpmacros Shows how macros are behaving in your program.
-xe Checks only for syntax and semantic errors.
-xhelp Displays online help for compiler options or latest readme.
-xport64 Helps you port code to a 64-bit environment.
-xs Allows debugging by dbx without object files.

F95 Debugging Options

Option Meaning
-dryrun Shows each component as it would be invoked, but does not actually execute it. Also shows how command options would expand.
-g Instructs both the compiler and the linker to prepare the file or program for debugging.
-Q Passes compiler options to a specific phase of the compilation process.
-s Strips the symbol table from the executable file.
-temp Defines the directory for temporary files.
-Xlist Finds potential programming bugs. Invokes an extra compiler pass to check for consistency in calls and common across the global program.
-xcheck Enables a runtime check for stack overflow.
-xdebugformat Identifies the format of debugger information
-xhelp Displays online help for compiler options or latest readme.
-xs Allows debugging by dbx without object files.

ContactAbout SunNewsEmploymentSite MapPrivacyTerms of UseTrademarksCopyright Sun Microsystems, Inc.