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
Debugging on Mac? #58
Comments
step1: insert that code to main file package.cpath = package.cpath .. ";/Users/andrewstarks/.vscode/extensions/tangzx.emmylua-0.3.28/debugger/emmy/mac/emmy_core.dylib"
local dbg = require("emmy_core")
dbg.tcpListen("localhost", 9966) step2: launch lua application, make sure the inserted code is executed and no error. |
debug crash in UE4.26 |
recompile EmmyLuaDebugger it work! |
This is not about Mac, but I have same & similar problems with Windows10-64bit and Debian Linux-64bit. My updated code which is suggested to be included in the lua application, it differs between Windows & Linux, so does not cover MacOSX. ( I see that MacOSX libraries have the extension ".dylib" - ok, Debian Linux libraries have the extension ".so" :-), but thats it ).
I installed the plugin by VSC store, not by GitHub a) But if I then try to debug by "Run / Start Debugging", I still get the So how to configure "launch.json" ? My current one for Windows is
A known solution with other LUA debuggers is to implement the attributes "path" and "cpath", so that there additional path & cpath strings can be given to the debugger. Unfortunately, neither "path" nor "cpath" are accepted as properties. b) For Debian Linux, though and fails by |
emmylua-vscode support launch debug in windows 10(not add any code and show in windows temminal !), |
I read a post https://zhongpan.tech/2020/04/22/032-vscode-debug-connection-resused/ solves my problem. {
"version": "0.2.0",
"configurations": [
{
"type": "emmylua_new",
"request": "launch",
"name": "EmmyLua New Debug",
"host": "127.0.0.1",
"port": 9966,
"ext": [
".lua",
".lua.txt",
".lua.bytes"
],
"ideConnectDebugger": true
}
]
} |
Out of the box, debugging does not appear to work and documentation is very light. The two configurations that I'm currently trying (I've tried many others):
(I have
lua
in the workspaceFolder)emmylua_launch Starts, and says
Launch program with x64 debugger.
in the DEBUG CONSOLE menu, and then does nothing. Debugging does not start.emmylua_new
Brings up an error "Error: connect ECONNREFUSED 127.0.0.1.:9966"
Adding this to the file i'm debugging has no effect.
Is debugging supported on the Mac? If not, it would be good to include a warning on the Readme file, and a suggestion on a workaround (another package?)
Thank you!
Adding
It may be that attaching to an external process through mobdebug (or some other socket based method) is the right way, but this fails with
The text was updated successfully, but these errors were encountered: