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...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, doesI'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.CODE:
go cd cdName of stack stackName
Is that normal?
(MacOS 11.7.10, LC 9.6.11)
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