News

Microsoft Updates Java Debugger for VS Code

Microsoft updated the open source Java debugger for Visual Studio Code, adding support for Java 9 among other improvements.

The Java debugger -- an extension in the VS Code Marketplace -- was published by Microsoft a couple months ago and then open sourced last month.

As Java 9 was released after the debut of the Java debugger, the VS Code team has been building in support for it, among other enhancements in the new version 0.3.0.

"To allow more and more developers to try the new version of Java with VS Code, we’ve also updated the debugger to automatically detect modular project and then resolve module path as well as main class accordingly," said Xiaokai He, program manager, in a blog post Friday. "You can now launch your Java 9 application with breakpoint in your source file with VS Code."

Other improvements include the ability to run and debug a single Java file that isn't part of any VS Code project, which He said is useful for learning Java or writing utilities.

It's now also easier to configure workspace folder and environment variables in the launch.json file.

Using the VS Code Java Debugger
[Click on image for larger view.] Using the VS Code Java Debugger (source: Microsoft).

"Future work, He said, includes support for Junit test cases and multi-root workspaces, expression evaluation, and hot code replacing. General multi-root workspace support was just provided in the latest VS Code 1.18 release. It was the No. 1 requested feature of VS Code developers who make their wants known in GitHub issues with the "feature" label.

The debugger can be acquired in the Java Extension Pack -- which bundles the tool with the Language Support for Java by Red Hat extension (required) -- or as a standalone extension for developers who already have the Red Hat extension is already installed.

The extension pack has been installed some 87,000 times while the standalone debugger has been installed about 126,000 times. The Red Hat Java support extension has been installed nearly 1.6 million time.

Capabilities of the standalone debugger as described by Microsoft include:

  • Launch/Attach
  • Breakpoints
  • Exceptions
  • Pause & Continue
  • Step In/Out/Over
  • Variables
  • Callstacks
  • Threads
  • Debug console

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Cloud-Focused .NET Aspire 9.1 Released

    Along with .NET 10 Preview 1, Microsoft released.NET Aspire 9.1, the latest update to its opinionated, cloud-ready stack for building resilient, observable, and configurable cloud-native applications with .NET.

  • Microsoft Ships First .NET 10 Preview

    Microsoft shipped .NET 10 Preview 1, introducing a raft of improvements and fixes across performance, libraries, and the developer experience.

  • C# Dev Kit Previews .NET Aspire Orchestration

    Microsoft's dev team has been busy updating the C# Dev Kit, a Visual Studio Code extension that enhances the C# development experience by providing tools for managing, debugging, and editing C# projects.

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

Subscribe on YouTube

Upcoming Training Events