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

Synchronize the exception traces and exception bindings #194

Closed
gsamokovarov opened this issue Apr 26, 2016 · 0 comments
Closed

Synchronize the exception traces and exception bindings #194

gsamokovarov opened this issue Apr 26, 2016 · 0 comments

Comments

@gsamokovarov
Copy link
Collaborator

During an error, the ActionDispatch::DebugExceptions error page tries displays the first Application Trace backtrace. Now, this is rarely the first backtrace and we (in Web Console) always presume the binding we have to choose by default is for the first one.

This often put is in a situation where an error is raised inside of framework code that is invoked from an application code. The error the user sees looks like it's raised from the application code (as this is the piece of code the error page shows), while the binding we have for the console is deep inside the framework code and it looks like Web Console "doesn't work". I think we should fix that for the next release and try to make a good guess which should be the first binding we choose.

While at it, I think we should drill on providing a mapping between exception bindings and exception backtraces, as we often can't match with the binding for the backtrace we click from the UI. Say, we have an exception that originated in C code – we cannot build a Ruby Binding object for that frame, however, we can probably provide a dummy binding object, in which evaluating code can explain why we can't evaluate code in there.

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

1 participant