-
Notifications
You must be signed in to change notification settings - Fork 139
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
Support for IDE-like debugging of RGSS / ruby scripts #198
Comments
Last time I checked (a long time ago), there was no simple way to step through a running ruby script, look at (local) variables etc., has this changed meanwhile?
This is correct. I don't know what's involved in making MRI "traceable", and I don't really have time or resources to devote to this, but I would support such an effort. |
Oh, I see..
Hmm, RubyMine seems to be able to? I'm approaching this from a similar perspective where ActionScript under Flash has no breakpoint at all, but with Flex you get those things...But in fact, I am not familiar with Ruby development at all, sorry if this turned out to be a silly question.
Can't agree more.
Thanks for the answer. I don't think I can do it even if I have all the time I want. One can only dream... |
Well...I don't know why I missed them, but there were certainly some attempts at porting the engine that can be used for the purpose. None seem to be finished. I have managed a frankenstein that can be boot up and debugged from VSCode (breakpoints/step into/step over/inspect variables...etc), it can show the title screen (in a quite poor way, because it is spliced together), but that's about it... I have no idea what is happening beyond title screen, either in a infinite loop or takes too much time drawing. Monkey patching can only get one so far... |
:O 超かっこいいじゃないすか、まるでIDEのdebuggerみたいです。 スクショ ありがとうございます。 |
You can actually get rdebug_ide and debase working inside mkxp, with some trickery. It's kinda meh, but it works. |
Currently, mkxp doesn't work on ruby 3.1, but I'm investigating. |
You can try using binding-util.h from mkxp-z, it supports 3.1 |
…ry-leak-fix Fix memory leak when disposing a high-res Bitmap
The idea is that it would be much easier to debug scripts, with step through/step into...etc functions provided by the IDE.
I saw some people mentioning using IDEs instead of the engine editor with MV, which shouldn't be too difficult because MV is backed by Javascript.
For engines with RGSS, I am under the impression that this would require quite some hacking, correct? (Likely involves RubyInline/Rice/FFI)
This is because both the official and the mkxp binary are exe first, Ruby second (Binary runtime that calls into Ruby script), where as MV is Javascript first. (Javascript that calls into JS Runtime)
Appreciate clarifications or confirmations.
The text was updated successfully, but these errors were encountered: