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

debug eval readline loop with reflection and upvals #26

Open
rurban opened this issue Sep 23, 2013 · 0 comments
Open

debug eval readline loop with reflection and upvals #26

rurban opened this issue Sep 23, 2013 · 0 comments

Comments

@rurban
Copy link
Member

rurban commented Sep 23, 2013

the current debug eval readline loop (IN_C and in .pn) doesn't allow access to registers, locals, upvals and values (paths) as :r,:l,:v,:u.

remote debuggers need the functionality as spec'd in https://github.com/perl11/potion/wiki/Debuger-interface

:debug (global debug object, bound to the debug object, prefixed with :)
:ast (current ast)
:cl (current closure)

debug getinfo = (level, name): .
debug getlocal = (f, i): .
debug setlocal = (f, i, name): .
debug setupvalue = (f, i, name): .
debug traceback = (f| level): .

We need to do this in a new closure with those values locally defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant