Breakpoints stopped working

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
edgore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 197
Joined: Wed Jun 14, 2006 8:40 pm

Breakpoints stopped working

Post by edgore » Wed Sep 26, 2012 8:43 pm

I am posting this in the beginner section since I assume I must have messed up something really basic, and I am just missing it.

All of the sudden, breakpoints have stopped working. This happened in a complex project I am working on, but I was able to replicate it in a very simple stack, illustrated below.

I created a new stack, put a simple opencard handler into the stack script that just puts some numbers into the message box and put a breakpoint in the handler. Saved it, closed everything, and when I opened the stack again the opencard handler executed without any problem, and the debugger did not activate on the breakpoint. As you can see from the open menu in the picture script debugging is turned on.
example.png
I have no idea what's wrong. I have tried deleting the preferences stack, just in case I had clicked on some unexpected setting, but I have no idea what wrong...

Any help is appreciated.

edgore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 197
Joined: Wed Jun 14, 2006 8:40 pm

Re: Breakpoints stopped working

Post by edgore » Thu Sep 27, 2012 4:05 pm

A complete uninstall, removal of all left over files (preferences, licenses, program folders, etc) and re-install seems to have fixed the issue. Wish I knew what I did to cause it though.

edgore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 197
Joined: Wed Jun 14, 2006 8:40 pm

Re: Breakpoints stopped working

Post by edgore » Thu Sep 27, 2012 5:10 pm

Spoke too soon. As soon as I ran the stack that gave me the problem originally breakpoints stopped working again, including for the simple sample stack that I provided pictures of above. Very strange. I would share the stack that is causing the problem, but it relies on network resources that are specific to my environment and I don't believe it will load anywhere else successfully...

trevix
Posts: 1079
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Breakpoints stopped working

Post by trevix » Wed Oct 03, 2012 1:44 pm

My breakpoint on the preopenstack stopped working too, but only on the launch of Livecode from doubleclicking on the stack (and it mess up with the preopenstack too..)
If I open the stack from Livecode, it works fine.
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

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

Re: Breakpoints stopped working

Post by Klaus » Wed Oct 03, 2012 2:55 pm

Hi friends,

the reason for this is the way Livecode opens a stack when doublclicked in opposite to starting Livecode first and then "Open" that stack.
No idea what exactyl is happening there, but obvioulsy "pre/openstack" messages don't get executed. :D
That's why I never doubleclick a stack to open it.

To "debug" a "pre/openstack" handler (with or without breakpoints) I use the messaege box:
send "preopenstack" to stack "your stack 2 test here..."

8)


Best

Klaus

Post Reply