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

HostExceptions in TruffleSqueak are difficult to inspect/debug #146

Open
janehmueller opened this issue Jun 10, 2021 · 1 comment
Open
Assignees

Comments

@janehmueller
Copy link
Contributor

When I get a HostException, I get a debugger showing me the primitive call where the exception occurred with only the exception name (HostException) as message. The root exception was an NPE, which has nil as its message. Additionally, HostExceptions are nested within each other with HostObject (not quite sure how this is structured).

It would be nice if I can view the stack trace of the root Java exception in TruffleSqueak.

@fniephaus
Copy link
Member

It seems that guest languages are not allowed to see stack frames of host Java.
In the meantime, I've pushed support for interop exceptions in the PolyglotInspector via 95f81e7.

@fniephaus fniephaus self-assigned this Jun 10, 2021
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

2 participants