Solved

What happened to my breakpoints?

Posted on 2004-08-10
5
298 Views
Last Modified: 2010-04-05
Weird,
I cant use my breakpoints anymore in Delphi7
I can set a breakpoint, but whenever I run my application, delphi just ignores the breakpoint and does not stop there.
No matter where I put the breakpoint, even on formcreate.

The breakpoint looks normal, until the apps run... then the breakpoint changes (it shows a small X inside the red dot.
But the breakpoint looks normal (regular red dot) when the app is not running.

I do have integrated debugging ON
0
Comment
Question by:LMuadDIb
5 Comments
 
LVL 7

Accepted Solution

by:
LRHGuy earned 50 total points
ID: 11768954
Is it in your own code you experience this problem?

Try "rebuilding" the project.

You might need "use debug dcu's" turned on in the options, to debug the vcl code.

Also, the "x" might mean that the location is not being linked in, i.e. unused. Be sure the routine actually is being called.
0
 
LVL 12

Assisted Solution

by:Ivanov_G
Ivanov_G earned 25 total points
ID: 11770099
Project / Options / Compiler / Debugging - here check all checkboxes

Project / Options / Linker / EXE and DLL options / Include TD32 Debug Info

now rebuild the project - Project / Build and try again.
if it don't work again, you can put breakpoint putting the code below:

asm
  int 3;
end;
0
 
LVL 6

Expert Comment

by:bpana
ID: 11777897
make sure the unit where you set the breakpoints is used in your project.

try closing all the units in your project. from the View -> Project Manager reopen the units.

check if the breakpoints are working. just compile the project. if they are valid, their state shouldn't change.
0
 
LVL 4

Author Comment

by:LMuadDIb
ID: 11779173
Thanx for the help guys, it was plain weird
I gave LRHGuy the points cause of "use debug dcu's", but that didnt seem to work until I tried Ivanov_G's "asm int 3; end;" trick
then all of sudden it worked and Ididnt have to use the asm :-/

giving xtra pts to Ivanov_G asm help
0
 

Expert Comment

by:Ron_de_Weijze
ID: 12665468
After renaming some methods I had the same problem.
Deleting dcu's and rebuilding them neither.
Just close and reopen Delphi, that worked.

Ron dW
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now