PC Review


Reply
Thread Tools Rate Thread

Access xp - Why does debugger break in when I have no breakpoint .

 
 
=?Utf-8?B?REogQmVja2Vy?=
Guest
Posts: n/a
 
      26th Feb 2005
I've made a change to an app that's been running for years. After adding
some code, now the debugger breaks in at a particular line even though I have
no breakpoint set there - I've Cleared All Breakpoints from the Debug menu.
If I click continue, the app continues without error. I need this code to
keep running - the users will not know what to do and shouldn't have to deal
with it anyway. Any ideas?
 
Reply With Quote
 
 
 
 
Ken Snell [MVP]
Guest
Posts: n/a
 
      26th Feb 2005
VBE sometimes remembers "phantom" breakpoints.

Two ways that I use to fix this problem.

(1) Comment out the line on which the breakpoint occurs. If the code won't
compile without that line, then comment out a block of code so that the code
can compile without it. Compile the code. Close the database. Open the
database. Uncomment out the code. Compile the code.

(2) Use the undocumented decompile switch when opening the database so that
all compiled code is uncompiled.
"PathToAccessExecutable\msaccess.exe" /decompile
"PathToYourDataBaseFile\DatabaseFileName.mdb"


--

Ken Snell
<MS ACCESS MVP>


"DJ Becker" <DJ (E-Mail Removed)> wrote in message
newsA0E9301-0716-4E1E-86C3-(E-Mail Removed)...
> I've made a change to an app that's been running for years. After adding
> some code, now the debugger breaks in at a particular line even though I
> have
> no breakpoint set there - I've Cleared All Breakpoints from the Debug
> menu.
> If I click continue, the app continues without error. I need this code to
> keep running - the users will not know what to do and shouldn't have to
> deal
> with it anyway. Any ideas?



 
Reply With Quote
 
=?Utf-8?B?REogQmVja2Vy?=
Guest
Posts: n/a
 
      26th Feb 2005
Beautiful - worked like a charm - Thanks.

I guess my frustration was inhibiting my ability to think of a simple
solution like that - I guess I expect a debugger to HELP me rather than get
in the way. Silly me.

This is my first post here and I have to say the answer appeared LOTS
quicker than it ever would have from searching the knowledge base. I imagine
I'll be back.

Thanks again.

-- Don --

"Ken Snell [MVP]" wrote:

> VBE sometimes remembers "phantom" breakpoints.
>
> Two ways that I use to fix this problem.
>
> (1) Comment out the line on which the breakpoint occurs. If the code won't
> compile without that line, then comment out a block of code so that the code
> can compile without it. Compile the code. Close the database. Open the
> database. Uncomment out the code. Compile the code.
>
> (2) Use the undocumented decompile switch when opening the database so that
> all compiled code is uncompiled.
> "PathToAccessExecutable\msaccess.exe" /decompile
> "PathToYourDataBaseFile\DatabaseFileName.mdb"
>
>
> --
>
> Ken Snell
> <MS ACCESS MVP>
>
>
> "DJ Becker" <DJ (E-Mail Removed)> wrote in message
> newsA0E9301-0716-4E1E-86C3-(E-Mail Removed)...
> > I've made a change to an app that's been running for years. After adding
> > some code, now the debugger breaks in at a particular line even though I
> > have
> > no breakpoint set there - I've Cleared All Breakpoints from the Debug
> > menu.
> > If I click continue, the app continues without error. I need this code to
> > keep running - the users will not know what to do and shouldn't have to
> > deal
> > with it anyway. Any ideas?

>
>
>

 
Reply With Quote
 
Jeff Conrad
Guest
Posts: n/a
 
      26th Feb 2005
"DJ Becker" <DJ (E-Mail Removed)> wrote in message
newsA0E9301-0716-4E1E-86C3-(E-Mail Removed)...

> I've made a change to an app that's been running for years. After adding
> some code, now the debugger breaks in at a particular line even though I have
> no breakpoint set there - I've Cleared All Breakpoints from the Debug menu.
> If I click continue, the app continues without error. I need this code to
> keep running - the users will not know what to do and shouldn't have to deal
> with it anyway. Any ideas?


Here is a past post by Gunny on this issue:
>>>>>


Sounds like the debugger settings were saved the last time a break point was
set at that line of code. You can open and close the database repeatedly,
and the problem remains.

To fix it, open the database, then open the form in Form View. Press
<ALT><F11> to open the VB Editor. Click the "Reset" button on the toolbar
three times. (Answer to question I know you are going to ask: Because
sometimes twice just isn't enough.) Select the Debug menu -> Compile
<DatabaseName>, just in case the code wasn't already compiled.

Press <ALT><Q> to return to Access. Select the Tools menu -> Database
Utilities -> Compact and Repair Database to compact the database. When
finished, close the database. Open the database again and open the form in
Form View, then enter text into the field that has recently been causing the
problem. The problem should be gone because you've removed the ghost
breakpoint.

And next time you are stepping through code, don't make any changes to the
code. That's what causes the ghost breakpoints.

HTH.
Gunny
See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.
>>>>>


Good luck,
--
Jeff Conrad
Access Junkie
Bend, Oregon


 
Reply With Quote
 
Ken Snell [MVP]
Guest
Posts: n/a
 
      26th Feb 2005
You're welcome.

--

Ken Snell
<MS ACCESS MVP>

"DJ Becker" <DJ (E-Mail Removed)> wrote in message
news:829A5C64-05E0-4EED-9FE3-(E-Mail Removed)...
> Beautiful - worked like a charm - Thanks.
>
> I guess my frustration was inhibiting my ability to think of a simple
> solution like that - I guess I expect a debugger to HELP me rather than
> get
> in the way. Silly me.
>
> This is my first post here and I have to say the answer appeared LOTS
> quicker than it ever would have from searching the knowledge base. I
> imagine
> I'll be back.
>
> Thanks again.
>
> -- Don --
>
> "Ken Snell [MVP]" wrote:
>
>> VBE sometimes remembers "phantom" breakpoints.
>>
>> Two ways that I use to fix this problem.
>>
>> (1) Comment out the line on which the breakpoint occurs. If the code
>> won't
>> compile without that line, then comment out a block of code so that the
>> code
>> can compile without it. Compile the code. Close the database. Open the
>> database. Uncomment out the code. Compile the code.
>>
>> (2) Use the undocumented decompile switch when opening the database so
>> that
>> all compiled code is uncompiled.
>> "PathToAccessExecutable\msaccess.exe" /decompile
>> "PathToYourDataBaseFile\DatabaseFileName.mdb"
>>
>>
>> --
>>
>> Ken Snell
>> <MS ACCESS MVP>
>>
>>
>> "DJ Becker" <DJ (E-Mail Removed)> wrote in message
>> newsA0E9301-0716-4E1E-86C3-(E-Mail Removed)...
>> > I've made a change to an app that's been running for years. After
>> > adding
>> > some code, now the debugger breaks in at a particular line even though
>> > I
>> > have
>> > no breakpoint set there - I've Cleared All Breakpoints from the Debug
>> > menu.
>> > If I click continue, the app continues without error. I need this code
>> > to
>> > keep running - the users will not know what to do and shouldn't have to
>> > deal
>> > with it anyway. Any ideas?

>>
>>
>>



 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      27th Feb 2005
"David C. Holley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)
> Q: When I click the RESET button three times, is there anything
> special I need to say like "I wish I were home", "Bill Gates is god",
> "Please, oh baby, please work for daddy"


No, but you do have to put $5 in an envelope and send it to Gunny's Home
for Wayward Programmers.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
Jeff Conrad
Guest
Posts: n/a
 
      27th Feb 2005
"Dirk Goldgar" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> No, but you do have to put $5 in an envelope and send it to Gunny's Home
> for Wayward Programmers.


Is that tax deductible?
I could use a few more deductions.

--
Jeff Conrad
Access Junkie
Bend, Oregon


 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      27th Feb 2005
"Jeff Conrad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)
> "Dirk Goldgar" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> No, but you do have to put $5 in an envelope and send it to Gunny's
>> Home for Wayward Programmers.

>
> Is that tax deductible?
> I could use a few more deductions.


That's between you and the IRS. Don't let me stand in your way.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
JDRaven
Guest
Posts: n/a
 
      28th Feb 2008
2 years later, and this post just helped me resolve a problem that cropped up
today with an Access database somebody else wrote. Your post has withstood
the test of time.

Thanks!

"Ken Snell [MVP]" wrote:

> VBE sometimes remembers "phantom" breakpoints.
>
> Two ways that I use to fix this problem.
>
> (1) Comment out the line on which the breakpoint occurs. If the code won't
> compile without that line, then comment out a block of code so that the code
> can compile without it. Compile the code. Close the database. Open the
> database. Uncomment out the code. Compile the code.
>
> (2) Use the undocumented decompile switch when opening the database so that
> all compiled code is uncompiled.
> "PathToAccessExecutable\msaccess.exe" /decompile
> "PathToYourDataBaseFile\DatabaseFileName.mdb"
>
>
> --
>
> Ken Snell
> <MS ACCESS MVP>
>
>
> "DJ Becker" <DJ (E-Mail Removed)> wrote in message
> newsA0E9301-0716-4E1E-86C3-(E-Mail Removed)...
> > I've made a change to an app that's been running for years. After adding
> > some code, now the debugger breaks in at a particular line even though I
> > have
> > no breakpoint set there - I've Cleared All Breakpoints from the Debug
> > menu.
> > If I click continue, the app continues without error. I need this code to
> > keep running - the users will not know what to do and shouldn't have to
> > deal
> > with it anyway. Any ideas?

>
>
>

 
Reply With Quote
 
Robert Morley
Guest
Posts: n/a
 
      28th Feb 2008
Another common method is to set and clear a breakpoint on the line that has
the phantom breakpoint. I've had fairly good luck with that method so far,
and it's nice and quick.


Rob

JDRaven wrote:
> 2 years later, and this post just helped me resolve a problem that cropped up
> today with an Access database somebody else wrote. Your post has withstood
> the test of time.
>
> Thanks!
>
> "Ken Snell [MVP]" wrote:
>
>> VBE sometimes remembers "phantom" breakpoints.
>>
>> Two ways that I use to fix this problem.
>>
>> (1) Comment out the line on which the breakpoint occurs. If the code won't
>> compile without that line, then comment out a block of code so that the code
>> can compile without it. Compile the code. Close the database. Open the
>> database. Uncomment out the code. Compile the code.
>>
>> (2) Use the undocumented decompile switch when opening the database so that
>> all compiled code is uncompiled.
>> "PathToAccessExecutable\msaccess.exe" /decompile
>> "PathToYourDataBaseFile\DatabaseFileName.mdb"
>>
>>
>> --
>>
>> Ken Snell
>> <MS ACCESS MVP>
>>
>>
>> "DJ Becker" <DJ (E-Mail Removed)> wrote in message
>> newsA0E9301-0716-4E1E-86C3-(E-Mail Removed)...
>>> I've made a change to an app that's been running for years. After adding
>>> some code, now the debugger breaks in at a particular line even though I
>>> have
>>> no breakpoint set there - I've Cleared All Breakpoints from the Debug
>>> menu.
>>> If I click continue, the app continues without error. I need this code to
>>> keep running - the users will not know what to do and shouldn't have to
>>> deal
>>> with it anyway. Any ideas?

>>
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugger not stopping at breakpoint debaird@techturf.net Microsoft Access VBA Modules 11 17th Jul 2008 12:41 PM
debugger doesn't work: "the breakpoint will not currently be hit. the specified module has not been loaded" orenbt78@googlemail.com Microsoft Dot NET Compact Framework 3 2nd Aug 2006 08:30 PM
break occurs no breakpoint set =?Utf-8?B?ZXJlZGxlYWY=?= Microsoft Access VBA Modules 1 22nd Feb 2005 10:01 PM
Access 2K does not break at breakpoint =?Utf-8?B?VGVycnk=?= Microsoft Access 2 9th Mar 2004 08:51 PM
Why my form runs in break-mode without Toggle Breakpoint? kim Nguye Microsoft Access Form Coding 1 26th Sep 2003 09:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:48 PM.