Sunday, March 26, 2023
Learning Code
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
Learning Code
No Result
View All Result
Home Java

With Java 19, VS Code Now Does Virtual Threads While Debugging — Visual Studio Magazine

learningcode_x1mckf by learningcode_x1mckf
October 24, 2022
in Java
0
With Java 19, VS Code Now Does Virtual Threads While Debugging — Visual Studio Magazine
74
SHARES
1.2k
VIEWS
Share on FacebookShare on Twitter


News

With Java 19, VS Code Now Does Digital Threads Whereas Debugging

The most recent replace to Java on Visible Studio Code improves the debugging expertise because of assist for the newly launched Java 19.

Java 19 shipped a month ago with a preview of Digital Threads and Structured Concurrency because of Venture Loom, the backing tech accountable for considered one of many debugging enhancements within the October 2022 replace. Microsoft’s Java on VS Code dev workforce is accountable for the Extension Pack for Java on Visual Studio Code within the editor’s market, which sports activities 15.5 million installs.

“Java 19 brings the primary preview of digital threads to the Java platform; That is the first deliverable of Venture Loom,” Microsoft stated in an Oct. 21 weblog post. “Digital threads are designed to considerably increase the scalability of concurrent Java programming whereas making little change to the present API. In our September launch, we’ve enabled the support for digital threads in our Java debugger. Word that you’ll want to put in JDK 19 to make use of this function.”


Virtual Threads
[Click on image for larger view.] Digital Threads (supply: Microsoft).

Extra about this function is obtainable in Oracle’s Java Journal article, “Coming to Java 19: Virtual threads and platform threads.”

Debugging in Java on VS Code is additional improved with new performance that gives a visible indicator for inline breakpoints in a line of code like this:

You might also like

YS Jagan launches Ragi Java in Jagananna Gorumudda, says focused on intellectual development of students – The Hans India

Disadvantages of Java – TheServerSide.com

Advantages of Java – TheServerSide.com

Stream.of("Frank").map(identify -> identify.toUpperCase()).forEach((merchandise -> System.out.println(merchandise));

“Now if you set a breakpoint on this line, Visible Studio Code will robotically establish the lambda expressions on this line, and visualize them with gray dots,” Microsoft stated. “If you wish to additional set inline breakpoints on these lambda expressions, you may instantly click on on these gray dots, and the gray dots will flip into crimson dots like regular breakpoints, then the debugger will cease at these breakpoints throughout the code execution. It will present you a lot simpler debugging expertise for these lambda expressions.”

That new performance is demonstrated on this animated GIF:


Inline Breakpoints in Animated Action
[Click on image for larger, animated GIF view.] Inline Breakpoints in Animated Motion (supply: Microsoft).

Together with enhancing debugging, the dev workforce additionally applied some code modifying enhancements regarding handy Lombok operations when a consumer clicks on the Code Motion lightbulb that triggers Fast Fixes.

Project Lombok, which received full support within the July 2022 replace to Microsoft’s Java on VS Code extensions, is designed to scale back boilerplate code, the quantity of which is traditionally infamous in lots of Java tasks. Lombok makes use of annotations for this process with the intention to streamline issues like coding getters and setters.

The dev workforce’s Code Motion tweak successfully permits builders to “Lombok” their code, Microsoft stated, or “DeLombok” the annotations they do not need anymore by deselecting them.

And, talking of annotations, in yet one more enchancment the workforce enhanced its code analysis capabilities by including assist for @Nullable and @Nonnull annotations. These annotations inform the developer and compiler if it is okay to permit null for a variable, parameter or return worth, Microsoft stated.

Concerning the Creator



David Ramel is an editor and author for Converge360.



Source link

Share30Tweet19
learningcode_x1mckf

learningcode_x1mckf

Recommended For You

YS Jagan launches Ragi Java in Jagananna Gorumudda, says focused on intellectual development of students – The Hans India

by learningcode_x1mckf
March 26, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

YS Jagan launches Ragi Java in Jagananna Gorumudda, says focused on intellectual development of students  The Hans India Source link

Read more

Disadvantages of Java – TheServerSide.com

by learningcode_x1mckf
March 26, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Disadvantages of Java  TheServerSide.com Source link

Read more

Advantages of Java – TheServerSide.com

by learningcode_x1mckf
March 26, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Advantages of Java  TheServerSide.com Source link

Read more

Java Developer Survey Reveals Increased Need for Java … – Benzinga

by learningcode_x1mckf
March 25, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Java Developer Survey Reveals Increased Need for Java ...  Benzinga Source link

Read more

Technology News | ⚡Oracle Releases Its New Java 20 Programming Language & Development Platform – LatestLY

by learningcode_x1mckf
March 25, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Technology News | ⚡Oracle Releases Its New Java 20 Programming Language & Development Platform  LatestLY Source link

Read more
Next Post
Developers want improved performance, efficiency in Java 20

Developers want improved performance, efficiency in Java 20

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related News

Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Malware Strains Targeting Python and JavaScript Developers Through Official Repositories – The Hacker News

March 4, 2023
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

The Top 8 JavaScript Engines for Game Development – MUO – MakeUseOf

February 27, 2023
Building stylesheets using Leaf – The.Swift.Dev.

Building stylesheets using Leaf – The.Swift.Dev.

September 21, 2022

Browse by Category

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

RECENT POSTS

  • YS Jagan launches Ragi Java in Jagananna Gorumudda, says focused on intellectual development of students – The Hans India
  • Disadvantages of Java – TheServerSide.com
  • Advantages of Java – TheServerSide.com

CATEGORIES

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

© 2022 Copyright Learning Code

No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#

© 2022 Copyright Learning Code

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?