首页 > 编程语言 > 详细

VS2013Z学习java插件

时间:2015-06-05 22:34:55      阅读:407      评论:0      收藏:0      [点我收藏+]

https://visualstudiogallery.msdn.microsoft.com/bc561769-36ff-4a40-9504-e266e8706f93

 

 

Bugs and Feature Requests: Issue Tracker

This extension provides basic features for the Java programming language. Current editing features include:

  • Syntax highlighting and brace matching
  • Outlining support for quickly collapsing classes and functions 
  • Dropdown bars listing classes, enums, interfaces, fields, and methods within the current document

The latest version of this extension also includes an experimental project system and debugger for Java code. More information about these features is included below.

This extension is not meant to replace a full IDE, but has certainly helped when I wanted to quickly reference a Java source file while working within Visual Studio.

Debugger Support

Current features of the debugger include:

  • Support for multiple JVMs
    • Support for the 32- and 64-bit releases of the standard JDK 6 and 7 (HotSpot VM)
    • Support for the 32- and 64-bit releases of JRockit R28.x
  • Full support for “Java Runtime Environment” exceptions in the Debug → Exceptions dialog
    • Standard packages and exceptions are shown in the Java Runtime Environment category
    • Users can add their own exceptions by name
    • Users may select which exceptions the debugger should break on at the time they are thrown
    • Unhandled exceptions automatically trigger a breakpoint
    • When an exception is thrown, a message is printed to the output window (similar to the way it’s handled in C# debugging)
  • Standard (unconditional) breakpoints
  • Stepping in the editor
    • Step Into/Over/Out
    • The Step Over command steps over a statement – with proper support for multiple statements on a single line
  • Disassembly window
    • Shows JVM bytecode interleaved with the original source code
    • The Step Over command steps by bytecode instruction instead of by statement
  • Support for the Locals, Autos, and Watch windows
  • Support for the Immediate window
  • Support for pinnable data tips
  • Support for the Threads window
  • Support for user-friendly representation of collections (lists, maps, arrays, etc.)

Stepping over statements

In our opinion, this is hands-down the coolest feature of our debugger.

We’ve been looking, but so far it seems that no current Java IDE can properly distinguish between multiple statements on a single line. We aim to change that.The image below shows a series of steps in the debugger (the Step Over command was executed exactly one time between each image). As you can see, our debugger follows the logical stepping sequence from the initializer to the condition of the for statement.

技术分享

Here is an animated image showing a more complete example.

技术分享

Intuitive display of collections without hiding data

The debugger provides special handling for arrays and classes implementing CollectionMap, and a few other interfaces. To ensure that the debugger doesn’t restrict access to information you need, a special Raw Values property is provided which the user can expand to see the object’s true internal structure. Direct access to the Static Members of classes is provided as well (standard for all classes).

技术分享

Bytecode disassembly

Curious about what your code is compiling to? The disassembly window fully supports Java bytecode while debugging your program.

技术分享

Exceptions

The Java debugger extends the Debug → Exceptions window with support for Java Runtime Environment exceptions.

技术分享

Handling behavior for exceptions may be configured by package or by individual exception type. The following example shows a user configuration requesting the debugger stop immediately when an IllegalArgumentException is thrown.

技术分享

When an exception is thrown, the debugger first checks to see if the user has requested the debugger stop when the exception is thrown. In this case, we configured the debugger to stop when an IllegalArgumentException is thrown, whether or not a catch statement is available to handle the exception.

技术分享

If an exception is thrown and no exception handler is available to handle the exception, the debugger stops immediately at the point the unhandled exception is thrown. The user does not need to specially configure the debugger to respond to this error case.

技术分享

Debugger tool windows

The following image shows the contents of many (but not all) of the currently supported debugger windows in Visual Studio.

技术分享

Version History

1.2.0 (April 25, 2015)

This should be considered a preview release of the new features of this extension.

1.1.0 (March 16, 2014)

This should be considered an early preview release of the new features of this extension.

 
  • Disable the Empty Project template since it isn‘t working properly
  • Stability improvements

1.0.8 (February 20, 2014)

This should be considered an early preview release of the new features of this extension.

  • Add Java project system, with support for building and debugging Java code
  • Support Visual Studio 2012 and Visual Studio 2013

1.0.6.318 (July 9, 2011)

  • Add syntax highlighting for Javadoc comments
  • Addressed several potential performance problems

1.0.5.311 (July 8, 2011)

  • Original release

VS2013Z学习java插件

原文:http://www.cnblogs.com/mingyongcheng/p/4555660.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!