Debugger Changes for XE2

From RAD Studio XE2
Jump to: navigation, search

Go Up to What's New in Delphi and C++Builder XE2


Cross-Platform Debuggers

In addition to the integrated native Embarcadero Win32 Debugger, RAD Studio has added two cross-platform debuggers:

  • Embarcadero Mac OS X Debugger
  • Embarcadero Win64 Debugger

The appropriate platform-specific cross-platform debugger runs on the target platform with your cross-platform application. You use the cross-platform debugger in the IDE in the same way you use the integrated debugger for native Win32 debugging.

For more information about the new debugging solution, see Debugging Cross-Platform Applications.

New Remote and Cross-Platform Debugging Solution

The new remote and cross-platform debugging solution requires:

The new debugging solution also enables you to use the new Deployment Manager to manage the deployment of your project.

The old-style remote debugging procedures are still supported, but we recommend that you start using the new remote debugging solution immediately.

For more information about the new debugging solution, see Debugging Cross-Platform Applications.

New Options for 'Load Process' and 'Attach to Process' Dialog Boxes

  • On all four of the Load Process dialog boxes and Attach to Process as well, you now have the ability to select the debugger that will be used. You can choose:
    • Embarcadero Win32 Debugger is the default embedded debugger for 32-bit Windows applications.
    • Embarcadero Win64 Debugger is specifically designed for debugging applications that target 64-bit Windows.
    • Embarcadero Mac OS X Debugger is specifically designed for debugging cross-platform applications that target a Mac running OS X.
Choose the debugger that matches the target platform of the process you want to load.
  • On Load Process Remote:
    • You now specify the Remote Host and Remote Path differently if you are using the new remote and cross-platform debugging solution as opposed to the old remote debugging solution. For example, in order to enter the host name using the new remote and cross-platform debugging solution, you click the ellipsis ([...]) to specify a remote profile that contains the host name.
    • The Remote Path can be specified as a ./ (dot-slash) relative path, which is relative to the remote profile directory on the target platform (the default location of output files associated with the current remote profile).
    • When you choose the Embarcadero Mac OS X Debugger, a field becomes visible and enabled: Use launcher application. The command-line field is preloaded with the command to run Xterm on the Mac. You can, however, change the command line, so that you can use an alternate terminal emulator on the Mac.
  • On Load Process Local and Load Process Remote, the checkbox for "Execute startup code on load" has been replaced by the following After load: fields:
    • Do not run - loads the executable but does not execute any code, equivalent to F7 (Step Into)
    • Run to program entry point - run to the first entry point, such as main(), equivalent to F8 (Step Over)
    • Run to first source - run to the first line of source code, equivalent to Shift-F7 (Trace to Next Source Line)
    • Run - Run to completion (or, if errors occur, enter Debug mode), equivalent to F9 (Run)
To use these options, click Run > Load Process.
  • On Attach to Process:
    • You can select one of the three Embarcadero debuggers (Win32, Win64, Mac OS X).
    • You can specify the Remote Machine by associating a remote profile if you are using the new remote and cross-platform debugging solution.

Figures Show 64-bit Registers

The help contains figures that represent the registers, as follows:

  • The following 64-bit registers are shown in Registers pane:
    • x64 CPU General Purpose Registers
    • x86 FPU Data Registers
    • x64 SSE Data Registers
  • The following registers are shown in FPU:
    • x86 FPU Data Registers
    • x64 SSE Data Registers

See Also