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

Optionally emit debug information with compiled scripts #24

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

garyttierney
Copy link

Background: I've ported the YarnSpinner runtime to another language so that I can embed it in a project I'm working on. As part of this I'd like to be able to produce human-readable error messages pointing to the lines in the source script whenever the VM raises an error. I'd also like to make use of the debug information to write a DAP server implementation and be able to step through a Yarn program at both the instruction and source code level.

This is a draft just to get the ball rolling on this -- I imagine the format could be changed/improved/made consistent with the CSV files.

The format for now is a simple direct JSON translation of the C# debug information dictionary.

Additionally consolidate all compilation related options into a CompileOptions class to avoid the limitation of 7 generic parameters in a command handler.

The format for now is a simple direct JSON translation of the C
debug information dictionary.

Additionally consolidate all compilation related options into a
`CompileOptions` class to avoid the limitation of 7 generic parameters
in a command handler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant