How to echo debug messages to the console?
Quote from whupper on January 5, 2008, 7:09 amIs there way to write debug messages to the console? Or is there some better way to debug? For example, I want to know when something is triggered.
Is there way to write debug messages to the console? Or is there some better way to debug? For example, I want to know when something is triggered.
Quote from whupper on January 5, 2008, 7:44 amOkay, I figured it out. You create a point entity of type point_clientcommand. Then you can output any command the user could do at the console there. In this case:
echo "Here is my debug message"
Note: The quote characters are important! Read the warning near the top of the page, here:
Okay, I figured it out. You create a point entity of type point_clientcommand. Then you can output any command the user could do at the console there. In this case:
echo "Here is my debug message"
Note: The quote characters are important! Read the warning near the top of the page, here:
Quote from Dewin on January 5, 2008, 4:59 pmYou might also simply run 'developer 2', which shows all inputs/outputs firing (assuming you're trying to debug entity logic)
You might also simply run 'developer 2', which shows all inputs/outputs firing (assuming you're trying to debug entity logic)