none
OLd Basic Stop RRS feed

  • Question

  • In SmallBasic is there a STOP provision - very useful in troubleshooting the original BASIC ??

    BasicAl

    Tuesday, July 31, 2012 9:55 PM

Answers

  • I guess you meant something to pause the running program, like a break-point?

    You can use -> TextWindow.PauseWithoutMessage().

    You can also display some variables to check their values like:

    TextWindow.WriteLine( "var1 = " + var1 + ",   var2 = " + var2 ).

    Then use -> TextWindow.PauseWithoutMessage().

    Or slowdown the program with -> Program.Delay().

    Another variation is to use the title bar to display the vars -> TextWindow.Title = "var1 = " + var1 + ",   var2 = " + var2.


    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    Wednesday, August 1, 2012 2:17 AM
    Answerer

  • For serious debugging purposes you can also use the extension which "litdev" made.

    It is described in this Forum under the title "Debugger SmallBasic Extension" published 

    on june 4th of this year. This works nicely


    Jan [ WhTurner ] The Netherlands


    Wednesday, August 1, 2012 10:04 AM
    Answerer

All replies

  • I guess you meant something to pause the running program, like a break-point?

    You can use -> TextWindow.PauseWithoutMessage().

    You can also display some variables to check their values like:

    TextWindow.WriteLine( "var1 = " + var1 + ",   var2 = " + var2 ).

    Then use -> TextWindow.PauseWithoutMessage().

    Or slowdown the program with -> Program.Delay().

    Another variation is to use the title bar to display the vars -> TextWindow.Title = "var1 = " + var1 + ",   var2 = " + var2.


    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    Wednesday, August 1, 2012 2:17 AM
    Answerer

  • For serious debugging purposes you can also use the extension which "litdev" made.

    It is described in this Forum under the title "Debugger SmallBasic Extension" published 

    on june 4th of this year. This works nicely


    Jan [ WhTurner ] The Netherlands


    Wednesday, August 1, 2012 10:04 AM
    Answerer