This sample code helps to demonstrate simplicity of debugging and developing GraalVM Polyglot applications using VS Code extensions.
- VS Code has to be installed.
- Then go to VS Code Extensions activity panel and search for GraalVM Extension Pack, install it. The GraalVM Extension Pack will install all required extensions.
- Navigate to Gr activity panel in VS Code and install some of the latest GraalVMs from the list.
- Confirm to set this as Active GraalVM for VS Code.
- Install the
js
component.
Working with Polyglot project in VSCode is simple just open this sample. It will be working out of the box with VS Code GraalVM extensions.
Place breakpoints either in Java or JavaScript code.
To debug the project go to Run and Debug activity or simply press F5. Choose Launch Java 8+ as this is the Polyglot debugger provided by GraalVM extensions.
That is, the sample is running under debugger on GraalVM.