Skip to main content
Harold Hambrick
Participating Frequently
Jan 5, 2022 1:51 PM UTC

Universe debugger - DEBUG

Forgive me if this question has already been asked/answered but I couldn't find a way to search for this on the forum for Universe only.

When debbugging a Universe program by putting DEBUG, or multiple DEBUG statements, in the program, then running the program.  Sometimes the program will break on the first DEBUG statement hit but then will not break on any other DEBUG statements and finish running the program.  To resolve this I've had to put input statements in the program and then CTRL-BREAK to get into the debugger.  This is very annoying.  

Has anyone else run across this issue or know how to fix the issue?

Thanks,
Harry

------------------------------
Harry Hambrick
Senior Software Developer
Rooms To Go Inc
Seffner FL US
------------------------------

    11 replies

    Harold Hambrick
    Participating Frequently
    Jan 6, 2022 9:58 AM UTC
    Harry,

    Can you let us know if a simple test is working?

    i.e.
    >CT BP BTEST

    BTEST
    0001 DEBUG
    0002 PRINT "A"
    0003 DEBUG
    0004 PRINT "B"
    0005 DEBUG
    0006 PRINT "C"

    >RUN BP BTEST
    BTEST: 2: PRINT "A"
    :: G
    A
    BTEST: 4: PRINT "B"
    :: G
    B
    BTEST: 6: PRINT "C"
    :: G
    C


    ------------------------------
    Mike Rajkowski
    support
    Rocket Internal - All Brands
    DENVER CO US
    ------------------------------
    Yes that program works fine.  I also did a program like the following:
    0001: DEBUG
    0002: PRINT "A"
    0003: FOR LPA=1 TO 10
    0004: DEBUG
    0005: GOSUB CRT.VAL
    0006: DEBUG
    0007: NEXT LPA
    0008: DEBUG
    0009: STOP
    0010: CRT.VAL:
    0011: CRT LPA
    0012: RETURN

    And that works fine also.  We have been having this issue for a long while now and I personally typically see the issue on larger programs.  For example the one that finally prompted me to ask about it on the forum is 6654 lines and 258483 bytes.  It seems to me sometimes to depend on the placement of the DEBUG statement as to whether it works correctly or not.  This is the first time I've seen this issue on any of the Universe machines I've ever worked on so it's odd to me.

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------