Saturday, April 1, 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 25, 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 due to assist for the newly launched Java 19.

Java 19 shipped a month ago with a preview of Digital Threads and Structured Concurrency due to Venture Loom, the backing tech answerable for certainly one of many debugging enhancements within the October 2022 replace. Microsoft’s Java on VS Code dev group is answerable 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 mentioned 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 got enabled the support for digital threads in our Java debugger. Notice that you will 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 accessible 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

So why did they decide to call it Java? – InfoWorld

Senior Java Developer – IT-Online

West Java to provide simultaneous polio vaccinations from Apr 3 – ANTARA English

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

“Now once you set a breakpoint on this line, Visible Studio Code will routinely determine the lambda expressions on this line, and visualize them with gray dots,” Microsoft mentioned. “If you wish to additional set inline breakpoints on these lambda expressions, you possibly can instantly click on on these gray dots, and the gray dots will flip into pink 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 group additionally applied some code enhancing 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 job as a way to streamline issues like coding getters and setters.

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

And, talking of annotations, in one more enchancment the group 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 mentioned.

Concerning the Writer



David Ramel is an editor and author for Converge360.



Source link

Share30Tweet19
learningcode_x1mckf

learningcode_x1mckf

Recommended For You

So why did they decide to call it Java? – InfoWorld

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

So why did they decide to call it Java?  InfoWorld Source link

Read more

Senior Java Developer – IT-Online

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

Senior Java Developer  IT-On-line Source link

Read more

West Java to provide simultaneous polio vaccinations from Apr 3 – ANTARA English

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

West Java to provide simultaneous polio vaccinations from Apr 3  ANTARA English Source link

Read more

COBOL programming skills gap thwarts modernization to Java – TechTarget

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

COBOL programming skills gap thwarts modernization to Java  TechTarget Source link

Read more

User input with a Java JOptionPane example – TheServerSide.com

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

User input with a Java JOptionPane example  TheServerSide.com Source link

Read more
Next Post
Condensers promise to accelerate Java programs

Condensers promise to accelerate Java programs

Leave a Reply Cancel reply

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

Related News

Time limit for notify – JavaScript – SitePoint Forums

Getting element value from iframe using jquery – JavaScript – SitePoint Forums

December 12, 2022
What’s the Difference? – Real Python

What’s the Difference? – Real Python

March 8, 2023
Code Intelligence introduces new command line tool for Java

Code Intelligence introduces new command line tool for Java

November 30, 2022

Browse by Category

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

RECENT POSTS

  • So why did they decide to call it Java? – InfoWorld
  • Senior Java Developer – IT-Online
  • 4 Packages for Working With Date and Time in JavaScript – MUO – MakeUseOf

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?