Is there any way to print the line number of a Lua file where a error occurred?
I tried using CompileChunk with the TraceLineDebugger like so:
CompileChunk(ScriptFilePath, new LuaCompileOptions() { DebugEngine = new LuaTraceLineDebugger() });
However that just gives me the stacktrace to the C# line where the script was compiled using CompileChunk.
What I want is the Lua line number where the error happened.
LuaStackTraceDebugger is not available on .net 6.0, however I already got it working using a bunch of workarounds.
I am on vacation right now so I cannot post my solution.
Is there any way to print the line number of a Lua file where a error occurred? I tried using CompileChunk with the TraceLineDebugger like so:
CompileChunk(ScriptFilePath, new LuaCompileOptions() { DebugEngine = new LuaTraceLineDebugger() });
However that just gives me the stacktrace to the C# line where the script was compiled using CompileChunk. What I want is the Lua line number where the error happened.I am working in .net 6.0 (so using 5.0 build)