MS Open Sources Java Debugger For VS Code
Written by Kay Ewbank   
Thursday, 02 November 2017

Microsoft has open sourced the Java debugger from the Visual Studio Code editor, along with the Java Debug Server that it uses on the back end. 

 Visual Studio Code is Microsoft's open source code editor that shares part of a name, but not much else, with full Visual Studio. It is open source under a MIT license and development is ongoing on GitHub.

The Java Debugger extension was only released at the end of September, and became the most trending extension of the month on the Visual Studio Marketplace. Microsoft has followed this up by open sourcing the debugger and the backend Java Debug Server, along with publishing a few feature improvements and bug fixes.

Visual Studio Code doesn't offer native support for Java, but developers using the editor have popularized third-party tools such as Red Hat's Language Support for Java. The debugger has the following features: 

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

The Java Debug Server is the bridge between VSCode and JVM. The implementation is based on JDI (Java Debug Interface). It works with Eclipse JDT Language Server as an add-on to provide debug features.

The main improvements to the new version of the debugger are the automatic resolving of the main class of a project so you no longer need to specify it manually; and full support for external source files. This means you can now debug with third-party classes, when the source code is inside a JAR or a source attachment. You can also set breakpoints in those classes ahead of debugging.

Alongside these changes, other improvements include the adoption of the new Visual Studio Code Debug protocol. The protocol is an abstract wire protocol that is used by Visual Studio code to communicate with debug adapters. 

This latest release also displays stackframe name with format ClassName.MethodName(ParameterList); and there are  improvements in the call stack display info for files without sources.

 javadebug

More Information

Java Debug Server On GitHub 

Java Debugger Extension on GitHub

Related Articles

Visual Studio Code Comes To Raspberry Pi And Chromebooks

Program Arduino in Visual Studio Code

Visual Studio Code Reaches Version 1.0

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


Microsoft Is Ending Support For Windows Android Subsystem
07/03/2024

Microsoft has announced that it is ending support for running Android applications under Windows 11. The support will cease next year. This announcement was followed rapidly by Amazon announcing the e [ ... ]



JetBrains AI Assistant - A Welcome Time Saver
28/02/2024

JetBrains AI Assistant saves developers up to eight hours per week and they appreciate its help.  77% of users feel more productive, 75% express that they are happier with their IDE experien [ ... ]


More News

 

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 02 November 2017 )