fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Asset Escrow breaks the debug library

Open rdelian opened this issue 3 years ago • 4 comments

Info

As the title says, Asset Escrow brakes the debug library, I personally use it to automate a few tasks

Repro

--file path is : ./repro_escrowdebug/server.lua
function Loko()
    local call_data = debug.getinfo(2,'S')

    print(json.encode(call_data))
end
Loko()

Output

Expected

{
    "source": "@@repro_escrowdebug/server.lua",
    "short_src": "@repro_escrowdebug/server.lua",
    "linedefined": 0, "lastlinedefined": 0, "what": "main"
}

Encrypted

{
    "source": "=?",
    "short_src": "?", 
    "linedefined": 0, "lastlinedefined": 0, "what": "main"
}

rdelian avatar Feb 27 '22 16:02 rdelian

Intended and already reported, leaving in debug info would also make for easier use of deobfuscation tools.

External debug info/mapping is considered but would require custom Lua patchwork.

blattersturm avatar Feb 27 '22 16:02 blattersturm

leaving in debug info would also make for easier use of deobfuscation tools.

Totally understood, will continue to use escrow_ignore on the affected files then

already reported

I tried to look on Forum and Discord but couldn't find anything

It would be cool to have a place to discuss such things, get info on where to post an issue or if it was already reported but not publically etc

rdelian avatar Feb 27 '22 17:02 rdelian

Hi

About this @rdelian

I tried to look on Forum and Discord but couldn't find anything

I also noticed this issue some time ago, this was the FiveM post I've wrote https://forum.cfx.re/t/output-errors-method-using-escrow-system/4796470

About this @blattersturm

Intended and already reported, leaving in debug info would also make for easier use of deobfuscation tools.

External debug info/mapping is considered but would require custom Lua patchwork.

Is there anything that you would suggest to debug scripts that are using the asset escrow? I'm having difficulties on providing support for a script of mine which has over 14.000 lines, about an error I cannot replicate on mine server where the script is not using asset escrow. Is adding print everywhere the only solution or do you have a better suggestion?

Thank you for your time 😁

jaksam1074 avatar Mar 26 '22 09:03 jaksam1074

Is there any plan for this issue?

BugCode1 avatar Feb 12 '24 19:02 BugCode1