HP Forums

Full Version: How to use HALT( ) ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It seems to do nothing, either in normal run/debug-> cont

Code:
EXPORT test()
BEGIN

local start:=TICKS;
    local xx;
    for xx from 1 to 100000 do
        halt();
     end;
     msgbox("took: " + (TICKS-start));
END;
I believe it is only inside CAS functions that it does anything.
Hi, is this by design? The debugger really needs this or any way to place breakpoints, otherwise it is a real pain to debug something above the hundreds lines.
Add debug() to the line you'd like to stop at. There was a reason why the halt command from the cas had to be left in, but I am not remembering what it was right now.
(01-21-2014 04:48 PM)Tim Wessman Wrote: [ -> ]Add debug() to the line you'd like to stop at. There was a reason why the halt command from the cas had to be left in, but I am not remembering what it was right now.

Great! thanks a lot (debug in the help seems to be just to ran programs)
Reference URL's