Post Reply 
How to use HALT( ) ?
01-21-2014, 02:56 AM
Post: #1
How to use HALT( ) ?
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;

My website: ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
01-21-2014, 04:01 AM
Post: #2
RE: How to use HALT( ) ?
I believe it is only inside CAS functions that it does anything.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
01-21-2014, 07:12 AM
Post: #3
RE: How to use HALT( ) ?
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.

My website: ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
01-21-2014, 04:48 PM
Post: #4
RE: How to use HALT( ) ?
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.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
01-21-2014, 05:13 PM
Post: #5
RE: How to use HALT( ) ?
(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)

My website: ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)