Debug JavaScript called by Java environment? #9757
Unanswered
s2310454034
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody,
unfortunately I could not find something which resolves/answer a certain issue i currently have with any Google search/searching the discussion topics here.
I would like to implement a Java App, where certain parts of the logic which are quite simple but may change often / should be able to be changed easily are "outsourced" to JavaScript (possibly later TypeScript) files.
Currently this is rather about getting to know the nuances of GraalJs. Currently i am calling my JavaScript code from a Java App like this:
The called JavaScript is simply a loop printing some output to console:
As this is more of a research for a project my company has in mind, is it possible to debug a JavaScript/TypeScript source which is called like this?
I found topics which state that configuration of some "inspect" option of the engine and/or context is needed. (like this link [ https://stackoverflow.com/questions/68762814/how-to-add-sourcemaps-to-graalvm-js-inspection ] ). When trying this, I get the exception listed below:
Same when trying to add this option to the context builder.
Thanks for any help/answers
Beta Was this translation helpful? Give feedback.
All reactions