I'm debugging some LUA code for Garry's Mod, but I was wondering if it's possible to debug the Lua code IN Garry's mod.
I get error messages in the developer console, and I was able to fix a few bugs this way, but there is a bug that is eluding me big time.
So, is there a way to Debug Lua script in Gmod?
Change shit till it works?
I find the lua_run and lua_run_cl console commands infinitely helpful, it also helps to write code cleanly. Place assert's when you know what something should be, errors as soon as possible, and don't write too much code without testing it.
[QUOTE=Moku;50686027]Change shit till it works?[/QUOTE]
There are days where I wonder why I even bother...
[QUOTE=Apickx;50686053]I find the lua_run and lua_run_cl console commands infinitely helpful, it also helps to write code cleanly. Place assert's when you know what something should be, errors as soon as possible, and don't write too much code without testing it.[/QUOTE]
Thanks. I'll put those commands to use.
Sorry, you need to Log In to post a reply to this thread.