auxtools debug server: expression evaluation#263
Merged
SpaceManiac merged 3 commits intoSpaceManiac:masterfrom May 18, 2021
sohpeach:eval
Merged
auxtools debug server: expression evaluation#263SpaceManiac merged 3 commits intoSpaceManiac:masterfrom sohpeach:eval
SpaceManiac merged 3 commits intoSpaceManiac:masterfrom
sohpeach:eval
Conversation
Contributor
Author
|
I forgot to mention that this would require another proc to be added to code-bases. /proc/auxtools_expr_stub()
returnThe whole thing works by replacing this proc's bytecode at runtime and then calling it. If you are missing the proc, it just won't work. No crashes or anything. |
Contributor
Author
|
I've released another debug server update since opening this PR, so I'd suggest shipping 2.1.0 instead of 2.0.0. |
Contributor
Author
Owner
|
Looked good enough in testing to merge, but here's a few bug reports:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The changes for the language server are minimal. This will require shipping version 2.0.0 of the debug server:
https://github.com/willox/auxtools/releases/tag/debug-v2.0.0(usehttps://github.com/willox/auxtools/releases/tag/v2.1.0(use https://github.com/willox/auxtools/releases/tag/v2.2.0))There are plenty of compiler features missing on the debug server's end, but it is definitely more than usable so I want to get it published. I plan on going a lot further this all of this, maybe we'll even have hot loading one day.
Noticeable differences from actual BYOND are:
.accesses as:accesses and ignore the rules of const.src. This comes from the fact that there is no static typing, so to access a field onsrcyou have to explicitly usesrc.xyzsyntax.For other limitations, just view the error list: https://github.com/willox/dmasm/blob/9ba328ef8c4e45c64072198e72c412cd9f685609/src/compiler.rs#L45-L76
tl;dr: relatively well-working debug console eval, watch eval, and conditional breakpoints