Handler behaves like debugging despite breakpoint removed

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kresten
Posts: 153
Joined: Tue Sep 30, 2008 3:01 pm
Contact:

Handler behaves like debugging despite breakpoint removed

Post by kresten » Thu Dec 17, 2015 12:36 am

A long handler in a substack continues, when called, to behave like debugging, although breakpoint is removed and app been closed, removed from memory and livecode (7.1.0) restarted. It is an old handler, which has been operating perfectly in older Livecode versions. Is this a known phenomenon ? Any suggestions how to escape from this trap ?

Kresten Bjerg, Copenhagen

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Handler behaves like debugging despite breakpoint remove

Post by dunbarx » Thu Dec 17, 2015 2:33 am

Hi.

You run the handler, and it steps into the debugger? And there are no soft or hard breakpoints at all? Does it start at the same line each time?

Craig Newman

kresten
Posts: 153
Joined: Tue Sep 30, 2008 3:01 pm
Contact:

Re: Handler behaves like debugging despite breakpoint remove

Post by kresten » Thu Dec 17, 2015 10:55 am

Yes it starts in the beginning each time.
I have run "Clear all breakpoints".
What is "soft breakpoints" ?

Kresten

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Handler behaves like debugging despite breakpoint remove

Post by Klaus » Thu Dec 17, 2015 2:09 pm

Hi Kresten,

a "soft breakpoint" is the red dot that appears when you click the line number in the script editor.
These are not as reliable as writing "breakpoint" (= a hard breakpoint) in the script.

Best

Klaus

kresten
Posts: 153
Joined: Tue Sep 30, 2008 3:01 pm
Contact:

Re: Handler behaves like debugging despite breakpoint remove

Post by kresten » Thu Dec 17, 2015 8:26 pm

Hi Klaus
Thank you for Info, but unfortunately no help for solving my stubborn problem.
Best regards

Kresten

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Handler behaves like debugging despite breakpoint remove

Post by mwieder » Thu Dec 17, 2015 9:44 pm

Look at the custom properties of the stack, especially the cREVGeneral propertyset.
If there are any entries in the breakpoints, breakpointconditions, and breakpointstates you will probably want to get rid of them.
Maybe the watches and watchstates as well.

Post Reply