Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Support for JDK 8. (The Red Hat extension requires JDK 11 or above.)
  2. Polyglot debugging.
  3. Support for OpenJDK projects.

Getting Started

Get VSApacheNetBeans the latest Apache NetBeans VSCode extension from the official VS Code market place, once it is available there.

Image Added

or download the latest development version of Until then, download the Apache NetBeans Language Server extension and install it into VSCode via Install from VSIX...

...

Then, enjoy browsing and editing the OpenJDK sources!

Scenario 4: GraalVM Sources

Get the Graal repository (or related repositories like Graal.js, Graal Python, etc.) and prepare it for development (most importantly make sure the mx tool is on PATH ). Then select a suite (graal/sdk , graal/truffle, graal/compiler, etc.) and build it using mx build . Then open the suite  in code  as a folder (_File/Open Folder_). Wait for the Apache NetBeans Language Server extension to be initialized (shows Indexing finished  in the status line). Use Ctrl-O  to open any Java file. Edit, use code completions provided by the system, open tests, run and debug them. Open a test class, locate @Test  method to debug and choose Debug :

Image Added

The system invokes mx build  and mx unittest ...  automatically for you and connects debugger to the started JVM. Then it's up to you to step through the code, hit breakpoints, etc. Should you debug Truffle language (like JavaScript, Python, etc.), the debugger steps in and shows you the guest language statements - see scenario 2  for more details.

Should you need to explicitly build from the code  choose Ctrl+Shift-P and type Java: Compile Workspace - that invokes mx build .