# debugger erasing breakpoints

**URL:** <https://forum.servoy.com/t/debugger-erasing-breakpoints/1676>\
**Category:** Classic Servoy\
**Created:** [April 8, 2004, 10:59pm UTC](https://forum.servoy.com/t/debugger-erasing-breakpoints/1676 "2004-04-08T22:59:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobertMeyer](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@RobertMeyer](https://forum.servoy.com/u/RobertMeyer)\
**Post date:** [April 8, 2004, 10:59pm UTC](https://forum.servoy.com/t/debugger-erasing-breakpoints/1676/1 "2004-04-08T22:59:17Z")

</div>

i’ve been having this problem for quite a while; i just  
keep forgetting to post it here…

it seems that quite often, i set a breakpoint or two in  
the method editor, fire up the form, and test whatever  
it is i’m working on, only to find that the breakpoint  
never occured (the code is running, but the debugger  
never “breaks” to allow me to debug).

i also see that the breakpoints are sometimes cleared  
when i look at the method!

oh, and while we’re on the subject, sometimes after  
i remove a breakpoint, they still occur!!

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 9, 2004, 6:47pm UTC](https://forum.servoy.com/t/debugger-erasing-breakpoints/1676/2 "2004-04-09T18:47:18Z")

</div>

do you have a reproduceable testcases (steps)  
For example do you switch from browse to designer and back?

---

<div class="post-metadata">

**Author:** ![RobertMeyer](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@RobertMeyer](https://forum.servoy.com/u/RobertMeyer)\
**Post date:** [April 9, 2004, 7:58pm UTC](https://forum.servoy.com/t/debugger-erasing-breakpoints/1676/3 "2004-04-09T19:58:34Z")

</div>

it’s a little difficult to pin down;

sometimes, i just switch from the method editor  
window to the active servoy window (already in  
‘browse’ mode, if that’s the right term), then  
click a button or do something that will cause the  
script to fire, and it fails to break into the debugger.

at other times, while in designer mode, i’ve actually  
set a breakpoint in the method editor, arranged the  
windows so i could see both the method editor and  
the designer window, switched to browse mode, and  
actually watched the breakpoint disappear!

i’m really not sure how to reproduce it at will however  
(sorry!)

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 12, 2004, 6:30am UTC](https://forum.servoy.com/t/debugger-erasing-breakpoints/1676/4 "2004-04-12T06:30:38Z")

</div>

one thing i did find out was that breakpoints set or unset when you are in designmode where reverted to the state before entering designmode the moment you got out of design mode..  
i fixed this.

---

<div class="post-metadata">

**Author:** ![RobertMeyer](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@RobertMeyer](https://forum.servoy.com/u/RobertMeyer)\
**Post date:** [April 12, 2004, 5:02pm UTC](https://forum.servoy.com/t/debugger-erasing-breakpoints/1676/5 "2004-04-12T17:02:24Z")

</div>

great!
