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

Custom debug display #70

Open
ncannasse opened this issue Feb 16, 2020 · 2 comments
Open

Custom debug display #70

ncannasse opened this issue Feb 16, 2020 · 2 comments

Comments

@ncannasse
Copy link
Member

Allow to define a static per class, which can customize the way the debugger displays values.
For example:

class Point {
     static var __debug_repr = "[$x,$y]";
     public var x : Float;
     public var y : Float;
}
@Gama11
Copy link
Member

Gama11 commented Feb 16, 2020

Why as a var, rather than a function that returns a String? The latter seems more flexible.

eval-debugger simply uses toString().

@ncannasse
Copy link
Member Author

It's not very easy to call the VM... would require making all threads pause and create another thread that executes the code...

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

No branches or pull requests

2 participants