Name

IDE, delphi32.exe

Usage

delphi32 [-attach:process;event] [-b] [-d file arguments] [-hhostname] [-hm] [-hv] [-m] [-np] [-ns] [-opath] [-sdpaths] [-td] [file]

Description

The IDE is not a command-line tool, but it can be treated as a command-line compiler with the -b and -m switches (described in this section). It takes other switches to start a debugging session or display debugging information about Delphi itself.

Options are not case sensitive. Each option can begin with a hyphen (-) or a slash (/). Unlike when using the command-line compiler, you cannot concatenate any options, even if you use a slash.

The rest of this section describes the command-line options:

-attach: process ; event

Start Delphi by debugging the running process whose process ID is process. When attaching to the process, pass event as the event ID. Delphi uses this option to enable its just-in-time debugger. You cannot generate an event manually, so you cannot use this option in other situations.

-b

Build the project named on the command line and exit. Error, warning, and hint messages are written to a file with the project’s filename and the extension .err. The error file is deleted if the project is compiled with no messages.

-d file arguments...
-d file arguments...

Start by loading file in the debugger. Any command-line arguments that follow the filename are passed to the program when it starts.

-h hostname

Start a remote debugging session on hostname.

-hm

Display heap statistics in Delphi’s main window ...

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.