-
Notifications
You must be signed in to change notification settings - Fork 19
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 sandboxed Factorio #3
Comments
The emmylua debugger is divided into emmy_core-based debugging and emmy_hook-based attach debugging, so which one are you talking about |
emmy_hook. Thanks for getting in touch so quickly :-) |
emmylua attach debugger, donot need require any thing |
Edit: console-output from emmy-hook That's what I was hoping for. I might have an actual bug on my hands. Whenever a breakpoint is hit, the process exits abruptly. There is no error message or anything in the game/IntelliJ logs to go by. Longer explanation: The breakpoints weren't doing anything which is why I wanted to break declaratively. I then found a blog-post mentioning
I set the breakpoint within a conditional on purpose. If I wear the armor and then move, the breakpoint is hit and the process ends. sidenote: The Lua-environment of Factorio might not be the friendliest. "require" has been modified, io and couroutines don't exist and there might be multiple lua-instances spawning/dying running at any time. I'm still new to both Lua and Factorio-modding, so forgive me if I got anything wrong. |
please update emmy_hook from https://github.com/EmmyLua/EmmyLuaDebugger/releases |
or use my project https://github.com/CppCXY/EmmyLua-AttachDebugger |
I downloaded latest release from your repository and replaced the plugin-files manually. It works as expected now. Thank you so much! :) I do fear that downloading files manually and discovering |
the reason for the manual update is that this plugin has not been updated for a long time. in the link above I maintained the latest version myself. |
Thank you so much for your work :) Don't they accept PRs? I have a rather unusal setup. I'm transpiling from TypeScript. Is there any way to get sourcemaps working? I tried altering fixPath so that it returned a corresponding ts-file, but breakpoints stopped working. |
I am the maintainer. It's just that the author may have forgotten to give me permission to this repository, and there are no functions related to source maps. |
Is it possible to use the debugger without using the commands on "emmy_core"?
It's successfully injected, but I'm unable to require the module due to the sandboxing of Factorio.
If I add
_G.emmy.fixPath
and sets a breakpoint, the debugger disconnects.The text was updated successfully, but these errors were encountered: