|
Debug Printing |
Top Previous Next |
Using the sys.debugprint method, you could have your program output messages onto TIDE's Output Pane while it executes.
For example, let's say you want to know every time the socket state changes (and what is the new socket state), without pausing the system. You could use this code:
sub on_sock_event(newstate as pl_sock_state, newstatesimple as pl_sock_state_simple)
dim state as string
select case newstatesimple case PL_SSTS_AC state = "Active Close" case PL_SSTS_AO state = "Active Open" case PL_SSTS_EST state = "Connection Established" end select
sys.debugprint(state)
end sub
|
And the debug pane would show output such as Connection Established, Active Open, etc.