X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Feb 2009 10:08 AM by  anon
halting execution of a program
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Feb 2009 10:08 AM
    Hello, I am trying to stop execution of a program at a breakpoint. I do not want the program to continue running past the breakpoint. Does anyone know how to do this? All toolbar options I've tried (and the .out command) resumes running of the program past the breakpoint, which in my case causes terrible errors. Any tips would be greatly appreciated. Thanks. Steve

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Feb 2009 11:37 AM
    Hi Steve,     If you code inside the development environment, there are icons along the top which allow you to insert breakpoints wherever you'd like inside the program.  Alternatively, if you just use a simple text editor for coding (like I do), you can insert the command STOP where you'd like the program to break.  This will keep all the current variable values, and send you out to the interactive IDL command line.   Dave

    Deleted User



    New Member


    Posts:
    New Member


    --
    22 Feb 2009 12:50 PM
    Dave, Thanks for the reply. I tried the method you suggest, but when I rerun the program it continues onward from the breakpoint. I am trying to stop execution at the breakpoint every time I rerun the program. The only solution I've found so far is to insert a goto statement at my breakpoing with the label before the 'end.' Pretty hoaky but it works. Steve
    You are not authorized to post a reply.