Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I ignore some units when stepping through code?

Status
Not open for further replies.

TimSNL

Programmer
Sep 11, 2001
119
AU
Hello all.

I have a grid component I have used in my application. When I am stepping through my code in the debugger it goes off into the code for these grid units, which I am not interested in. [bugeyed]

Does anyone know how I can stop D6 stepping through these units, but still step normally through my own units?

Thanks for your help.
Tim
 
hi,

To step through the code you have two keys F7 and F8. You should use them both:
F7 = step to the next line which will be executed.
F8 = step to the next line in this unit.

If you want to skip the lines you donn't want to see you use F8 else F7.

Steph [bigglasses]
 
Additionally, if Delphi can't find the source for a module, it won't step through it. You could rename the .pas files for the control, or hide them inside a .zip or whatever.

This could potentially cause problems further down the track, though; typically whenever you try to upgrade or reinstall Delphi or import an app's source to a new development PC and compile it, if you haven't kept careful track of what non-Delphi-standard components it uses, you wind up grovelling around finding files and messing with paths and stuff. -- Doug Burbidge mailto:dougburbidge@yahoo.com
 
Are you trying to avoid your own source code or VCL debugging? If you are trying to avoid stepping through the VCL, I think you can remove the VCL from the debug path in your project options.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top