Skip to content

Latest commit

 

History

History
 
 

polyglot-debug

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

GraalVM Java to JavaScript Polyglot Debugging

This sample code helps to demonstrate simplicity of debugging and developing GraalVM Polyglot applications using VS Code extensions.

Prerequisities

  1. VS Code has to be installed.
  2. 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.
  3. Navigate to Gr activity panel in VS Code and install some of the latest GraalVMs from the list.
  4. Confirm to set this as Active GraalVM for VS Code.
  5. Install the js component.

Debugging the project

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.