Jump to content
Éric Malenfant

Debugging C++ VCL on Win64

Recommended Posts

Hello all,

 

  • Fresh install of C++ Builder 10.4.2, with "Delphi 10.4 and C++ Builder 10.4 Update 2"
  • In "Tools/Options", add "<install-path>\lib\win64\debug" to the "Embarcadero Debuggers" Symbols search path.
  • Create a new Windows VCL C++ application
  • Add Win64 platform
  • Make sure the Win64-Debug configuration is active
  • Set a breakpoint in tWinMain (for example on Application->Initialize())
  • Build and start debugging.

 

The breakpoint is hit, but:

  • The events view indicates that no debug info is available on Project1.exe
  • Trying to step into "Application->Initialize()" shows the CPU pane

 

On the 10.3.3 Community Edition, the same sequence "works":

  • The Events view indicates that Project1.exe has debug info
  • Stepping into "Application->Initialize()" shows the source in Vcl.Forms.pas

 

I must be missing something obvious. Anyone knows what has to be done on 10.4.2 to be able to debug a C++ VCL app on Win64?

 

Thanks,

Éric

Share this post


Link to post

10.4.2 is known to have all sorts of negative issues on the clang debugging experience (both 32 and 64 bit).

We are promised that 10.5 will be much better.....

10.5 is hopefully not too far away (although no information other than a fairly old road map is available on this).

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×