Link to home
Start Free TrialLog in
Avatar of pjelias
pjelias

asked on

Help Debugging Embarcadero Rad XE3 / Delphi

Hi,

I have purchased and used most Delphi Versions since Delphi 1.

I am currently using RAD XE3 (Delphi) and trying to rewrite/update existing applications within RAD XE3.

In Older versions, I could set a Breakpoint in Code and the application would stop where I expected it to stop when debugging. Now I have the following issues:-
When setting a Breakpoint the code does NOT stop where I expect the code to stop
When setting a Breakpoint the Breakpoint SOMETIMES has a RED or Green Circle with an X through it
When stepping through Code, I often step through Code that is NOT MINE eg. Belongs to other SYSTEM DLL's - HOW DO I STOP THESE ?
Also it now takes an Extremely Long Time to Run the Applications while Debugging

All I want to Do is Find WHERE my errors are occurring, set a Breakpoint on MY CODE and Ignore any External DLL's, INC files etc....,  Step through each Line of My Code and Set Watches on Variables if Required.

I have changed numerous options, I have even removed AQTime (Smartbear) which was causing errors, and reinstalled the entire app on 3 occasions, all to no avail.

Any help would be greatly appreciated
ASKER CERTIFIED SOLUTION
Avatar of Thommy
Thommy
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MvanderKooij
>When setting a Breakpoint the code does NOT stop where I expect the code to stop

Make sure your source code is actually use for compilation, and that the line feeds / cariage returns are correct. (this get messed up sometimes when using sourcecontrol tools etc with different LF/CR settings)

> When setting a Breakpoint the Breakpoint SOMETIMES has a RED or Green Circle with an X through it
Check your library path for duplicated source files

> When stepping through Code, I often step through Code that is NOT MINE eg. Belongs to other SYSTEM DLL's - HOW DO I STOP THESE ?
Uncheck Use debug DCU's in the project options

>Also it now takes an Extremely Long Time to Run the Applications while Debugging
Did you already try rebuild all? Maybe other tools are interfering with the debugger?

Goodluck
Avatar of pjelias
pjelias

ASKER

>When setting a Breakpoint the code does NOT stop where I expect the code to stop

Make sure your source code is actually use for compilation, and that the line feeds / cariage returns are correct. (this get messed up sometimes when using sourcecontrol tools etc with different LF/CR settings)

Don't use any other tools, all carriage returns correct

> When setting a Breakpoint the Breakpoint SOMETIMES has a RED or Green Circle with an X through it
Check your library path for duplicated source files

Checked for duplicates - none exist, and won't allow

> When stepping through Code, I often step through Code that is NOT MINE eg. Belongs to other SYSTEM DLL's - HOW DO I STOP THESE ?
Uncheck Use debug DCU's in the project options

was already unchecked

>Also it now takes an Extremely Long Time to Run the Applications while Debugging
Did you already try rebuild all? Maybe other tools are interfering with the debugger?

I use 3 Third Party Tools - DevExpress, ReportBuilder and GExperts - all products latest verions, and had No issues with speed in the past


Thommy in regards to your suggestion, I have tried reading ALL Documentation available.

Looking at the link you sent me though, images show Blue Dots on the left hand gutter, and it states "Lines of Code that may execute during the debugging process". I do not have these blue dots at all.

Have tried creating New Projects - VCL-Applications, looked through Internet and cannot find any solutions.
Avatar of pjelias

ASKER

Have read through parts of the Debugging Tutorial

- I can now see blue dots in Most of my code's units, I understand where and why the blue dots appear, however, there are some lines where a blue dot will not appear.

I have been replacing ALL Uses statements with Updated RAD XE3 statements
eg. Uses Messages, SysUtils, Graphics.....  etc.... to
Uses System.UITypes, System.SysUtils, Vcl.Graphics...... etc....

I think this may be fixing the issue, however, not sure ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pjelias

ASKER

Thanks to All - Thommy's link - helped to solve most of the issues,
sinisav - code generation/optimization is unchecked (no optimization) - solved the final issue

Thanks