How to remotely debug a Win32 VCL application built with a runtime package

I wrote a simple win32 VCL application that has the following code:

procedure TForm5.Button1Click(Sender: TObject);
begin
  ShowMessage('bingo');
end;

I compiled the application with runtime packages and enabled the following switches:

  • Debug Information -> true
  • Enable remote debug symbol → true
  • Approval, debugging information, local smbols, using debug dcus -> true

The output has the following files:

  • Project1.exe
  • project1.rsm

Two runtime packages:

  • vcl160.bpl
  • rtl160.bpl

I set a breakpoint in the Button1Click handler, the local IDE debugger will stop there if I run the application in debug mode.

Next, I want to try remote debugging an application with runtime packages.

32- Windows. . PAServer . , 4 Delphi XE2 IDE:

  • Project1.exe
  • project1.rsm
  • vcl160.bpl
  • rtl160.bpl

:

Module Load: Project1.exe. No Debug Info. Base Address: $00400000. Process Project1.exe (1676)

, .

.exe- . , .

, ?

+5
1

, ".dcp", .

( XE2):

, .dcp

Delphi , . Mac OS X Win64 Win32. .dcp, . , rtl, rtl.dcp.

.dcp, Embarcadero\Rad Studio\9.0\lib :

  • OS X: Embarcadero\Rad Studio\9.0\lib\osx\release
  • 64- Windows: Embarcadero\Rad Studio\9.0\lib\win64\release
  • 32- Windows: Embarcadero\Rad Studio\9.0\lib\win32\release
+1

All Articles