Solved

Debugger limitations

Posted on 1997-04-21
9
172 Views
Last Modified: 2010-04-04

Is there some limit to the amount of symbol information that Delphi 1 can cope with? I've a large project ( 100+ units ) which has started to show debugging problems. The browser doesn't always know about a symbol when asked, and setting breakpoints doesn't always work on lines that are definitely being called. Yes, I've got all the debug flags ( except TDW ) on, yes, I'm building everything in sight, and no, I'm not optimising for load time.
Is this a known problem? Any way to fix ? Does delphi 2 have any such limits ?
0
Comment
Question by:andrewjb
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 3

Expert Comment

by:sperling
ID: 1335566
I've heard of this before, but haven't experienced it myself. I believe it has something to do with some internal limitations in the IDE debugger.

As far as I know you can't fix it... Consider DLLs is the best idea I can come up with.

I haven't experienced nor heard of any such problems in D2...


Regards,

Erik.
0
 
LVL 12

Author Comment

by:andrewjb
ID: 1335567
Current thoughts are that it might be something to do with the number of UNITS you've got, not their size. Although this sounds strange, someone else has indicated that a fix is to combine units into one.
0
 
LVL 3

Expert Comment

by:sperling
ID: 1335568
That might work, if the problem is that the "namespace" of the debugger is too small. I've also seen comments indicating that keeping the units in the same directory would help.

Regards,

Erik.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 4

Expert Comment

by:nils pipenbrinck
ID: 1335569
At least I can help you with the breakpoint problem.

If you want to raise a breakpoint you can hardcode it into your
program. Just use these three lines:

  asm;
    int 3;
  end;

Int3 will be trapped by the debugger and will always work. But be sure you removed all these calls before you run the program without delphi. It'll crash!


0
 
LVL 1

Accepted Solution

by:
miv earned 100 total points
ID: 1335570
It´s the length of the combined path of all your units which hits the roof in Delphi.
Shorten your paths or place all units in one dir near the root ex. c:\src\
You can, however, debug as it is now, just use a high level unit in the unit you wish to debug.
(Mail me if you did´nt get that :-) )

Ex.
UNIT LowLevelUnit;

USES
  HighLevelUnit;
0
 
LVL 12

Author Comment

by:andrewjb
ID: 1335571
Miv,
Interesting! Looks as though this might be helping. Two questions :
First, how did you find this out? Is there something documented somewhere, or was it by experimenting ?
Second, Sorry I didn't understand your 'include a high level unit' bit to get it to debug now. Could you explain again??

100 points are about to be yours!!.......

0
 
LVL 1

Expert Comment

by:miv
ID: 1335572
Found out the hard way - 350 units, 250.000 lines of code...

The units first parsed when you compile is low level units - file handling, math routines etc.
Your Mainform is prob. a very high level unit. (My own definition).

If you wish to debug f.ex. a math unit, place your mainforms unit name in the uses statement of the implementation in the math unit and rebuild. That should do the trick.

Happy coding, I hope Delphi 2/3 solves the problem.
0
 
LVL 1

Expert Comment

by:miv
ID: 1335573
What´s happening Andrew ?
0
 
LVL 12

Author Comment

by:andrewjb
ID: 1335574
Sorry, miv, just checking that it actually works.....
No problems so far. Still no reply from Borland!
Here are your points !
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
calling Tcolordialog in dll make the form disappear 8 114
code issue 8 133
Firemonkey webbrowser scrollbars ? 1 41
Slow Restore if incremental backups using RDiff.exe 4 21
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question