-
I plan to use boa as the embedding script engine of the modding system in my game and it's necessary to support debugging. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yep! The spec defines a debugger statement which is precisely for use cases like yours. Previously that was a bit impossible, since we were doing ast interpretation, but we recently moved to a VM architecture, which makes it a bit easier to implement pausing and resuming JS code. Though, that'll require some amount of API design. If you have ideas about the API or some examples from which we can design ours, feel free to comment them here 😁 |
Beta Was this translation helpful? Give feedback.
Yep! The spec defines a debugger statement which is precisely for use cases like yours.
Previously that was a bit impossible, since we were doing ast interpretation, but we recently moved to a VM architecture, which makes it a bit easier to implement pausing and resuming JS code. Though, that'll require some amount of API design.
If you have ideas about the API or some examples from which we can design ours, feel free to comment them here 😁