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
Delphi

Avatar of undefined
Last Comment
pjelias

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Thommy

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
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.
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 ?
Your help has saved me hundreds of hours of internet surfing.
fblack61
SOLUTION
Sinisa Vuk

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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