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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Annoying Debugger Option

Status
Not open for further replies.

lespaul

Programmer
Feb 4, 2002
7,083
US
For a while now I when debugging in Delphi I have to step through the Windows.pas.

I didn't use to have to do this, but I opened a project that another employee had worked on and my Delphi program just suddenly started showing these steps in the process. So I usually have to step through "LeaveCriticalSection" and "EnterCriticalSection" about 10 - 15 times before getting back to MY code.

I have looked in the Debugger Options but can't see anything obvious that should be checked or unchecked to stop this "feature". I don't really need to see the Windows.pas, I'm pretty sure that the information in there will compile and run just fine, it's finding the errors in MY code that I'm trying to accomplish.

Any suggestions for turning this off would be greatly appreciated!

Thanks,
Leslie
 
I think you are shooting yourself in the foot by reinstalling everything. There is no way for the IDE editor to find source (*.pas) unless it is defined somewhere in the paths. Look not only at:
Project > Options > Directories/Conditionals > Debug source path:
but also:
Tools > Debugger Options > Debug DCU Path:

Use windows search to find your source (windows.pas for example) and remove the path from the above. Make sure you haven't accidentally saved a copy in your ..\project\ folder. If you have, delete them.

Define paths to low level modules to where the DCUs are stored, usually ..\DELPHIx\lib\. Don't put source code in LIB unless you want to be able to debug them.

If you must have code there (*.pas), you can also turn debugging off within you own code with compiler directive {$D-}

You could reinstall and quite possibly end up with the same mess.

Roo
Delphi Rules!
 
That's what I'm thinking. I'm thinking you have a copy of Windows.pas that's in your library search list. Perhaps do a hard drive search and verify that the copies of Windows.pas are where they should be--in their default installation paths.

GIS Programmer
City of Orem, UT
 
Ok a complete search of the C drive for Windows.pas (hidden & system files included) shows the following:
[tt]
1. JvInterpreter_Windows.pas in C:\Program Files\JVCL320CompleteJCL197-Build2172\jvcl\run
2. Windows.pas (shortcut) in C:\Documents and Settings\landrews\Recent
3. Windows.pas in C:\Program Files\Borland\Delphi6\Source\Rtl\Win
4. IdStackWindows.pas in C:\Program Files\Indy\indy9.0.18_source
5. IdStackWindows.pas in C:\Program Files\Indy 9 for Delphi\Source
6. IdStackWindows.pas in C:\Program Files\Borland\Delphi6\Source\Indy9
7. clxdesignwindows.pas in C:\Program Files\Borland\Delphi6\Source\ToolsAPI
8. designwindows.pas in C:\Program Files\Borland\Delphi6\Source\ToolsAPI[/tt]

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual

Essential reading for database developers:
The Fundamentals of Relational Database Design
Understanding SQL Joins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top