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

    Manu Fernandes
    Inspiring
    Jan 5, 2022 3:03 PM UTC
    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
    ------------------------------
    Hi

    I do not expriment the behavior, but... 

    After the first stop/debug do you use : 
    - C to continue the prog or
    - R to run the prog or
    - G to go next... 
    Perhaps there is a bypass of next debug regarding the lettre used C or G or R ? 


    I'll suggest you use RAID file prog or RUN file prog (D to enter the program at line 1, then set break point or watch point. 

    If you use debug, at first stop set you next break point / watch var. 

    I hope this help.

    ------------------------------
    Manu Fernandes
    ------------------------------
    Harold Hambrick
    Participating Frequently
    Jan 5, 2022 3:12 PM UTC
    Hi

    I do not expriment the behavior, but... 

    After the first stop/debug do you use : 
    - C to continue the prog or
    - R to run the prog or
    - G to go next... 
    Perhaps there is a bypass of next debug regarding the lettre used C or G or R ? 


    I'll suggest you use RAID file prog or RUN file prog (D to enter the program at line 1, then set break point or watch point. 

    If you use debug, at first stop set you next break point / watch var. 

    I hope this help.

    ------------------------------
    Manu Fernandes
    ------------------------------
    I have always used the G when debugging.  I've been doing that on different Universe systems for years and this is the only system that I've ever seen this issue on.   Watches don't seem to work well on this system either. I have not used the RAID FILE PROG before I'll give that an attempt and see how it works.  This is a wrapper program that calls a subroutine and the DEBUG statements are in the sub so I'm assuming if I use RAID on the calling program that it will follow into the sub.  Thanks for the suggestion!

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------
    Manu Fernandes
    Inspiring
    Jan 5, 2022 3:16 PM UTC
    I have always used the G when debugging.  I've been doing that on different Universe systems for years and this is the only system that I've ever seen this issue on.   Watches don't seem to work well on this system either. I have not used the RAID FILE PROG before I'll give that an attempt and see how it works.  This is a wrapper program that calls a subroutine and the DEBUG statements are in the sub so I'm assuming if I use RAID on the calling program that it will follow into the sub.  Thanks for the suggestion!

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

    Another sugg, is the subr in a HUSH or CAPTURING or any OFF user-interface  situation ? 

    Good luck.

    ------------------------------
    Manu Fernandes
    ------------------------------
    Tyrel Marak
    Participating Frequently
    Jan 6, 2022 7:25 AM UTC
    Okay

    Another sugg, is the subr in a HUSH or CAPTURING or any OFF user-interface  situation ? 

    Good luck.

    ------------------------------
    Manu Fernandes
    ------------------------------
    Harry,

    Have your checked PTERM DISPLAY?  How about the account-VOC's X-types?

    ------------------------------
    Tyrel Marak
    Technical Support Manager
    Aptron Corporation
    Florham Park NJ US
    ------------------------------
    Harold Hambrick
    Participating Frequently
    Jan 6, 2022 8:04 AM UTC
    Okay

    Another sugg, is the subr in a HUSH or CAPTURING or any OFF user-interface  situation ? 

    Good luck.

    ------------------------------
    Manu Fernandes
    ------------------------------
    No HUSH, CAPTURING or OFF in the sub.

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------
    Harold Hambrick
    Participating Frequently
    Jan 6, 2022 8:05 AM UTC
    Okay

    Another sugg, is the subr in a HUSH or CAPTURING or any OFF user-interface  situation ? 

    Good luck.

    ------------------------------
    Manu Fernandes
    ------------------------------
    No HUSH, CAPTURE or OFF in the sub.

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------
    Harold Hambrick
    Participating Frequently
    Jan 6, 2022 8:06 AM UTC
    Harry,

    Have your checked PTERM DISPLAY?  How about the account-VOC's X-types?

    ------------------------------
    Tyrel Marak
    Technical Support Manager
    Aptron Corporation
    Florham Park NJ US
    ------------------------------
    No on the PTERM DISPLAY.  I'll check into that.  What X-type VOC's are you referring to? 

    Thanks!

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------
    Tyrel Marak
    Participating Frequently
    Jan 6, 2022 8:28 AM UTC
    No HUSH, CAPTURE or OFF in the sub.

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------
    I was thinking specifically of INTR.KEY, QUIT.KEY, SUSP.KEY.  Depending on how those are set, some options will not be available.  I'm not positive, but that might interfere with debugging.

    ------------------------------
    Tyrel Marak
    Technical Support Manager
    Aptron Corporation
    Florham Park NJ US
    ------------------------------
    Harold Hambrick
    Participating Frequently
    Jan 6, 2022 8:46 AM UTC
    I was thinking specifically of INTR.KEY, QUIT.KEY, SUSP.KEY.  Depending on how those are set, some options will not be available.  I'm not positive, but that might interfere with debugging.

    ------------------------------
    Tyrel Marak
    Technical Support Manager
    Aptron Corporation
    Florham Park NJ US
    ------------------------------
    Those appear to be set correctly.  What's odd is I have a DEBUG just before GOSUB XYZ, run the program and it will hit the DEBUG and break every iteration.  I move the DEBUG to immediately after the GOSUB XYZ and it will hit the DEBUG and break only on the first iteration and will not break on any other iterations.

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------
    Mike Rajkowski
    Rocketeer
    Jan 6, 2022 8:53 AM UTC
    I have always used the G when debugging.  I've been doing that on different Universe systems for years and this is the only system that I've ever seen this issue on.   Watches don't seem to work well on this system either. I have not used the RAID FILE PROG before I'll give that an attempt and see how it works.  This is a wrapper program that calls a subroutine and the DEBUG statements are in the sub so I'm assuming if I use RAID on the calling program that it will follow into the sub.  Thanks for the suggestion!

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------
    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
    ------------------------------