I don't really understand what you're saying/asking but debuglog acts the same as print but the comman d is only run when the program is run in 'debug' mode.
Try running
in both debug and non-debug mode and check output window.
Try running
debuglog "Hello"
in both debug and non-debug mode and check output window.