Shop OBEX P1 Docs P2 Docs Learn Events
Debug Output Window — Parallax Forums

Debug Output Window

Is there a way to capture text in the debug output window on the P2? With the old PST I could page up the window, or copy text and paste. I found this pretty invaluable for capturing everything in a program cycle.

Comments

  • cgraceycgracey Posts: 14,133

    You can set this symbol to how big you want the data capture to be:

    DEBUG_LOG_SIZE 'Sets the maximum size of the 'DEBUG.log' file which will collect DEBUG messages. A value of 0 will inhibit log file generation.

  • What unit is used for the size, kb?

  • cgraceycgracey Posts: 14,133

    @jcfjr said:
    What unit is used for the size, kb?

    Just bytes.

    DEBUG_LOG_SIZE = 1_000_000 '1MB

  • What might be handy at some point is to be able to redirect the DEBUG data to go through SEND instead of only serial (maybe selectable in the CON block like its other options) then for standalone systems another COG could also intercept this debug information and present it in some similarly useful format (eg. in a graphics/text display).

Sign In or Register to comment.