Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot debug bytecode files directly #56

Open
JanSharp opened this issue Feb 23, 2022 · 0 comments
Open

Cannot debug bytecode files directly #56

JanSharp opened this issue Feb 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@JanSharp
Copy link

When trying to debug a bytecode file you get the error

bin/linux/lua: ....local-lua-debugger-vscode-0.3.2/debugger/lldebugger.lua:1782: attempt to load a binary chunk (mode is 't')
stack traceback:
	[C]: in function 'luaAssert'
	....local-lua-debugger-vscode-0.3.2/debugger/lldebugger.lua:1782: in function 'runFile'
	(command line):1: in main chunk
	[C]: in ?

This can be worked around by writing a wrapper file that does nothing but load the bytecode file and run it by passing along all of the arguments, which is pretty inconvenient when the build system specifically outputs bytecode files.

So this is a request for all occasions where the debugger is loading a string or a file to use the "bt" mode.

@tomblind tomblind added the enhancement New feature or request label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants