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

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube