Hi,
I'm trying to debug a handler that basically takes parameters 'cdName' and 'stackName'. It does a few controls and eventually if everything is OK, does
I'm trying to debug my app and whenever the debugger reaches that instruction the debugger dies and the Livecode goes back to the IDE. I tried setting breakpoints at different places before this instruction. I also tried setting a breakpoint after that instruction but it's never reached.
Is that normal?
(MacOS 11.7.10, LC 9.6.11)
Fjord wrote: Tue Jun 11, 2024 9:36 pm
Hi,
I'm trying to debug a handler that basically takes parameters 'cdName' and 'stackName'. It does a few controls and eventually if everything is OK, does
I'm trying to debug my app and whenever the debugger reaches that instruction the debugger dies and the Livecode goes back to the IDE. I tried setting breakpoints at different places before this instruction. I also tried setting a breakpoint after that instruction but it's never reached.
Is that normal?
(MacOS 11.7.10, LC 9.6.11)
Not quite clear what you're after - from personal experience it's often helpful setting breakpoint in the first line of the handler (or the calling handler) and then stepping through line-by-line to see what's going on...
Alternatively, you should try a Try/Catch block?
You can look it up in the dictionary, but broadly it is of the form:
whenever the debugger reaches that instruction the debugger dies and the Livecode goes back to the IDE.
What? The debugger releases control midstream by itself? It stops, er, debugging and just exits back to the IDE? This should ONLY happen if you press CMD-Y or the "Stop debugging" button at the top of the SE (the blue square button).
I suppose you could pull the plug on your machine as well.
Are we sure the description of what is happening is correct?
Rereading, and with a hint from Stam, how are you entering the debugger in the first place? With a breakpoint (either an explicit line of code or a red dot)?
We need to know the values of cdName and stackName
I would assume (dangerous business) that they are the names of cards in stacks that are currently open . . .
Although I wonder if stackName is the name of a stack other than the one in which the code resides whether that won't throw a 'bluey' as cards from another stack cannot be shown in the originating stack's window.
dunbarx wrote: Wed Jun 12, 2024 7:00 pm
Guys and gals.
How would any of that kick out a running debugger? The worst that could happen is that an error is thrown, and the debugger halts.
I am suspecting that the word "debugger" is not what we think it is.
I think he means an error occurred that stops the debugger. The reason we need to know the values of the variables is because if he's using anything but the short name, an error will occur when LC tries to parse "stack stack thisStack" or "card card thisCd".
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com