Page 1 of 1

Debugging TC8.06 with C++ Builder 2010

Posted: Wed Jan 06, 2010 8:55 am
by 10554786
Hello,

I wonder how I can debug TeeChart 8.06. Conditions:

- TeeChart 8.06 with source code
- C++ Builder 2010 Professional
- XP SP3

I installed TeeChart 8.06 with source code, used Recompile, checked the debug option there and got TeeChart Pro 8 components installed. What I miss is a *.tds file, which the C++ compiler needs. Tried to compile TeeChart in C++ Builder 2010 without Recompile, but I don't file a project file to load.

Re: Debugging TC8.06 with C++ Builder 2010

Posted: Thu Jan 07, 2010 3:59 pm
by narcis
Hi to2,

TeeChart Pro VCL source code is fully written in Delphi. I have heard that Delphi sources can be debugged with C++ Builder doing something like the steps below (which are for Delphi 6) but uses an intermediate Delphi instance.

- Start Delphi 6.
- Execute the menu item File / Close All
- Open the DPK for the package that contains the component of interest
- Execute the menu item Run / Parameters
- Set "Host Application" to "c:\program files\borland\delphi6\bin\delp­hi32.exe" (For C++ Builder you should change this to C++ Builder's *.exe)
- Set the desired breakpoints
- Execute the menu item Project / Options
- Navigate to the Compiler tab
- Ensure "Use Debug DCUs" is checked
- Navigate to the "Directories / Conditionals" tab
- Update "Debug source path" to include: "c:\program files\borland\delphi6\source\t­oolsapi" and "c:\program files\borland\delphi6\source\p­roperty editors"
- Run