image thumbnail

Suppressible Command Window Debug Output

version (164 KB) by Nick Counts
debugout() provides debugging messages that can be suppressed with debugmode(false)


Updated 01 Nov 2016

View License

This set of debug commands allows you to add debugging messages and output to your code that can be enabled or suppressed easily. debugout() writes to the Command Window and, if called from inside a function, includes the name of the parent function as bold text before the command message.
Debug output is similar in style to using Matlab's own disp()

Cite As

Nick Counts (2022). Suppressible Command Window Debug Output (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!