News

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 at Converge 360.

comments powered by Disqus

Featured

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

  • Copilot Agentic AI Dev Environment Opens Up to All

    Microsoft removed waitlist restrictions for some of its most advanced GenAI tech, Copilot Workspace, recently made available as a technical preview.

Subscribe on YouTube