Jump to content

[QUESTION] Debugscript


WASSIm.

Recommended Posts

Posted

because  mta debug use the Lua debug librarya

  so Lua only write  file line + function error without resource name

 

you can fix your debugscript view with  the script

 

addEventHandler ("onClientDebugMessage",getRootElement(),
function(message,level,file,line)
  outputDebugString ("\n ==============================================")
 outputDebugString (message)
outputDebugString ("file :" .. file)
outputDebugString ("line :" .. line)
end)
Posted

Maybe it's a compiled script? That sometimes messes up the debug output, but usually it's only the line number that is missing, not the resource name (at least in my case).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...