driver2 Posted November 5, 2009 Share Posted November 5, 2009 Hello, I've wrote a function for Debugging, maybe you find it useful: https://wiki.multitheftauto.com/wiki/Var_dump It allows you to check variables for their type and value. If you want to use it, just copy it in the script you need to debug and call it like any other function. Greetings Link to comment
robhol Posted November 6, 2009 Share Posted November 6, 2009 Looks very useful. Nice work. Link to comment
50p Posted November 7, 2009 Share Posted November 7, 2009 I would not advise to use console for debugging just like the guy did on FreeStateProject server with old spawning script... It's sent to everyone and in case you forget about 1 line, your players' console will fill up with your debug messages. Use it only if you have want to output lots of lines (eg. for loop) so that you can see every line and not missing lines in debug window. Link to comment
MOH Posted November 7, 2009 Share Posted November 7, 2009 So negative 50p. I love it. Link to comment
driver2 Posted November 7, 2009 Author Share Posted November 7, 2009 You can always just deactivate the var_dump-Function or just search the script for var_dump() calls in order to get them all (every editor should have some kind of search). And you can always simply change the function to use another output method than outputConsole(). Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now