Java on VS Code Improves Debugger and Test Runner

The April 2021 update to Java on Visual Studio Code mainly improves debugging and testing.

In VS Code, Java tooling is provided via various extensions that are bundled in the Java Extension Pack that's still in preview in the VS Code Marketplace. The popular extension pack has been installed more than 7.8 million times. The extensions can be downloaded together with the Java Pack Installer that can be found on Microsoft's Java in Visual Studio Code page.

Java Extension Pack
[Click on image for larger view.] Java Extension Pack (source: Microsoft).

Here's a snapshot of what's new in the latest update:

  • Inline Values and Customized Variables View for Debugging: the Debugger for Java extension that's available standalone or in the aforementioned extension pack can now show variable values inline in the editor while stepping through source code, thanks to the adoption of a new debugger extension API.
    Customized Variables
    [Click on image for larger view.] Customized Variables (source: Microsoft).
  • Generating Tests: Using the Java Test Runner extension, developers can now generate the method templates directly from a test file, with more functionality -- specifically support for generating them from a source file -- coming next month. "Automatically generating testing method templates and importing testing packages is a handy feature to improve coding efficiency," Microsoft's Yaojin Yang, Senior Program Manager, Developer Division, said in a May 13 announcement.
  • Java 16 Now Supported: Java 16 reached general availability in March, boasting 17 enhancements ranging from a Vector API (incubator) to sealed classes (preview).
  • Refined Creating Maven Project Experience: This improves working with the popular build automation tool. "Now, you will be promoted to open project right after the completion of creation," Yaojin said
  • .

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • Devs Demand Visual Studio 2022 Ditch Old .NET Framework Dependencies

    Developers commenting on a Microsoft post about performance improvements in the upcoming .NET 8 demanded the company end Visual Studio 2022's dependency on the old .NET Framework.

  • Microsoft Remakes Azure Quantum Dev Kit with Rust, 'and It Runs in the Browser!'

    "The' tl;dr' is that we rewrote it (mostly) in Rust which compiles to WebAssembly for VS Code or the web, and to native binaries for Python."

  • GitHub Copilot Chat Beta Opens Up for Everybody

    GitHub Copilot Chat has taken another step toward general availability, as GitHub announced a beta offering previously accessible only by team/business customers is now available to individuals.

  • Tools and Libraries for Building Cloud-Ready Apps in .NET

    Creating any kind of software application is difficult enough, but in the cloud things only get harder when complexities like microservices, distributed teams and so on are thrown into the mix.

Subscribe on YouTube