Attach to Process

From RAD Studio
Jump to: navigation, search

Go Up to Run Menu

Run > Attach to Process

Debugs a process that is currently running on either your local computer, a remote PC, or a multi-device target platform.

Item Description

Debugger

Select the debugger you want to use to debug the process:

  • Embarcadero Windows 32-bit Debugger is the default embedded debugger for 32-bit Windows applications.
  • Embarcadero Linux 64-bit Debugger is the debugger for 64-bit Linux applications.
  • Embarcadero Windows 64-bit Debugger for Delphi is a debugger for 64-bit Windows applications, which understands Delphi debug information and Delphi syntax when evaluating expressions.
  • Embarcadero Windows 64-bit LLDB Debugger for C++ is a debugger for 64-bit Windows applications, which understands the C++ debug information format and C++ syntax when evaluating expressions.
  • Embarcadero macOS 32-bit Debugger is the debugger for applications that target either a Mac running, a 32-bit macOS, or the iOS simulator.
  • Embarcadero macOS 64-bit Debugger is the debugger for applications 64-bit macOS (Intel) applications.
  • Embarcadero iOS64 Device Debugger is specifically designed for debugging applications that target 64-bit iOS devices.
    Note: Attach to Process is not supported for the Embarcadero iOS64 Device Debugger.
  • Embarcadero Android 32-bit Debugger is specifically designed for debugging applications that target Android 32-bit devices.
    Note: Attach to Process is not supported for the Embarcadero Android Debugger.

Remote machine

Complete this field according to the debugging solution you are using:

  • If you are using the old-style remote debugging solution:
    • The remote debug server (such as rmtdbg.exe for 32-bit Windows) must be running on the remote computer. There are different sets of remote debug server files for each supported target platform.
    • If a port was specified when starting the remote debug server, enter a colon after the host name, followed by the port. For example, if you specified port 8000, specify the remote host as somehost:8000 or 127.0.0.1:8000. Otherwise, the default port 64447 is used.

Running processes

Lists the processes currently running on the local machine or, if specified, the remote machine (the Remote Debug Server must be running).

Image Name

Lists the name of the process.

PID

Lists the process identifier of the process.

Path

Lists the location of the process.

Show system processes

Includes system processes in the Running Processes list.

Pause after attach

Pauses the process after the debugger attaches to it and displays the CPU View. You will need to run, step, or trace to resume execution.

Refresh

Refreshes and redisplays the list of running processes.

Attach

Attaches the debugger to the selected process and, if Pause after attach is enabled, displays the CPU window.

The Attach button is disabled for the IDE itself or for any process that you have already attached to with the debugger.

See Also