Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 821

Talking LiveCode • Re: Debugging and 'go cd x of stack y'

$
0
0
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

CODE:

go cd cdName of stack stackName
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:

CODE:

try   <code to try>catch <errorVariable>   <code to act on if the try code fails>end try

Statistics: Posted by stam — Tue Jun 11, 2024 10:29 pm



Viewing all articles
Browse latest Browse all 821

Trending Articles