Solved

What happened to my breakpoints?

Posted on 2004-08-10
5
296 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

747 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

12 Experts available now in Live!

Get 1:1 Help Now