Lazarus command line options

From Lazarus wiki
Jump to navigationJump to search

lazarus [options] <project-filename>

option short description
--help -? this help message
--version -v show version and exit
--quiet be less verbose, can be given multiple times
--verbose be more verbose, can be given multiple times
--setup Show setup dialog for most important settings
--primary-config-path=<path> --pcp=<path> primary config directory where Lazarus stores its config files. Default is /home/USER/.lazarus
--secondary-config-path= <path> --scp=<path> secondary config directory where Lazarus searches for config template files. Default is /etc/lazarus
--debug-log= <file> file where debug output is written to. If it is not specified, debug output is written to the console.
--debug-enable= [[-]OptName][,[-]OptName][...] Enable or Disable groups of debug output. Valid Options are:
DBG_VERBOSE, DBG_WARNINGS, DBG_STATE. DBG_EVENTS, DBG_STATE_EVENT, DBG_DATA_MONITORS, DBG_DISASSEMBLER, DBG_LOCATION_INFO, SYNMOUSEEVENTS, SRCED_LOCK, SRCED_OPEN, SRCED_CLOSE, SRCED_PAGES, DBG_CMD_ECHO, DBG_CMD_ECHO_FULL, DBGMI_TYPE_INFO, DBGMI_TIMEOUT_DEBUG, DBG_THREAD_AND_FRAME, DBGMI_QUEUE_DEBUG, DBGMI_STRUCT_PARSER, FPDBG_VERBOSE_MEM, FPDBG_THREADS, DBG_ERRORS, FPDBG_DWARF_VERBOSE, FPDBG_DWARF_ERRORS, FPDBG_DWARF_WARNINGS, FPDBG_DWARF_SEARCH, FPDBG_DWARF_DATA_WARNINGS, FPDBG_QUEUE, DBG_BREAKPOINTS, FPDBG_COMMANDS
--no-splash-screen --nsc Do not show splash screen
--force-new-instance Do not check if another IDE instance is already running
--skip-last-project Skip loading last project
--language= Override language. For example --language=de. For possible values see files in the languages directory.
--lazarusdir=<dir> directory to be used as a basedirectory
--lcl-no-transient Do not set transient order for modal forms
--gtk-module module Load the specified module at startup.
--g-fatal-warnings Warnings and errors generated by Gtk+/GDK will halt the application.
--gtk-debug flags Turn on specific Gtk+ trace/debug messages.
--gtk-no-debug flags Turn off specific Gtk+ trace/debug messages.
--gdk-debug flags Turn on specific GDK trace/debug messages.
--gdk-no-debug flags Turn off specific GDK trace/debug messages.
--display h:s:d Connect to the specified X server, where "h" is the hostname, "s" is the server number (usually 0), and "d" is the display number (typically omitted). If --display is not specified, the DISPLAY environment variable is used.
--sync Call XSynchronize (display, True) after the Xserver connection has been established. This makes debugging X protocol errors easier, because X request buffering will be disabled and X errors will be received immediately after the protocol request that generated the error has been processed by the X server.
--no-xshm Disable use of the X Shared Memory Extension.
--name programe Set program name to "progname". If not specified, program name will be set to ParamStrUTF8(0).
--class classname Following Xt conventions, the class of a program is the program name with the initial character capitalized. For example, the classname for gimp is "Gimp". If --class is specified, the class of the program will be set to "classname".
--disableaccurateframe disables fully accurate window frame under X11. This feature is implemented for Qt, Qt5 and Gtk2 interfaces and used mostly by GetWindowRect().