Show: Delphi C++
Display Preferences

Attaching to a Running Process

From RAD Studio
Jump to: navigation, search

Go Up to Debugging Applications Index

You can attach to a process that is running on your PC or on a remote PC or supported cross-platform target. For example, doing this is useful for debugging a program that was not created with RAD Studio.

To attach to a running process

  1. Choose Run > Attach to Process to display the Attach to Process dialog box.
    By default, the Attach to Process dialog displays the processes running locally, for which the default debugger is the Embarcadero Win32 Debugger.
  2. Select the appropriate debugger from the Debugger drop-down list:
    • Embarcadero Win32 Debugger if the process you want is either a local 32-bit application or is running on a remote 32-bit PC.
    • If the process is running on a cross-platform machine, select the appropriate cross-platform debugger:
      • Embarcadero Mac OS X Debugger if the process is running on a Mac under OS X.
      • Embarcadero Win64 Debugger if the process is a 64-bit Windows process, running either locally on your 64-bit Windows development system or on a remote 64-bit Windows system.
      • Embarcadero iOS Device Debugger if the process is running on an iOS device.
  3. Specify the Remote Machine where the process is running (either host name or IP address):
  4. The list of Running Processes is refreshed to display the processes running either locally or on the remote machine.
    For cross-platform processes, the selected debugger attempts to connect to the specified remote cross-platform machine. If a connection profile does not exist for the specified remote machine (or if the Platform Assistant server is not running on the target platform or an intermediate platform that supports the target platform), an error is displayed, "Unable to connect to remote host." To Create a Connection Profile or to select from existing connection profiles, click the ellipsis button [...].
  5. Select a process from the list of Running Processes.
  6. To include system processes in the list, check Show System Processes.
  7. If you do not want the process to pause after you have attached to it, uncheck Pause After Attach.
  8. Click Attach. The CPU Windows open.

See Also

Personal tools
In other languages