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

Breakpoints are ignored

Status
Not open for further replies.

ak48

Technical User
Aug 1, 2003
34
US
Hey, I'm trying to debug a procedure and for some reason all my breakpoints are ignored (even in other procedures). Why is going on?
 
From the immediate window, try calling one of your procedures directly & step through the code. If it breaks properly this way, then the problem is that you aren't getting to that piece of code during your debugging process.

If you still aren't convinced, put a few simple msgbox commands in key places (like "function xxx section 1"). If they don't appear, then you aren't getting there!

K. Hood
 
Well, I already tried what you did and the msgbox does appear. I also tried setting breakpoints in procedures that work for sure and it still doesn't break... Just to convince you that the program really get to the breakpoint here is a basic procedure I did espacially to test that

Sub test()
dim x,y

x = 2
(Break) y = x
debug.print y

End sub

If I call the procedure 2 is printed but it does not stop at the breakpoint... Maybe there is a way to turn breakpoint off somewhere in the options?? Any ideas?
 
AK48,

Did you disable access "special keys" by chance? If so, try enabling it.

K. Hood
 
It was indeed disabled but re-enabling it hasn't solved my problem... Thanx for helping and tell me if you have any more ideas.
 
Ok I found the problem and I gotta say I feel a bit dumb... The computer needed a good'ol reboot... Sorry I should have figured it out by myself :)
 
AK48,

Cool. My experience has been that I have solved more of my own problems in the process of trying to explain my problem to someone else. It makes you step back & describe it more carefully, which helps you solve it yourself.

K.Hood
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top