I am trying to debug my driver with Visual Studio 2017. But I failed to connect to the target computer. Who can tell the cause? The configuration of target computer is as following. And I checked that the NIC supports Kdnet.
September 28, 2017 Xiaokai He
- Debugger operation failed, Operation is not valid due to the current state of the object.
- If the service can be started, you will see You have successfully completed the Visual Studio Remote Debugger Configuration Wizard. If the service cannot be started, you will see Failed to complete the Visual Studio Remote Debugger Configuration Wizard. The page also gives some tips to follow to get the service to start.
For Java developers on Visual Studio Code, the Language Support for Java(TM) by Red Hat extension has been great for providing language features such as IntelliSense and project support. At the same time, we've also heard feedback that users would also like Java debugging. Today, we're excited to announce our ongoing collaboration with Red Hat and enabling Java developers to debug Java applications with a new lightweight Java Debugger for Visual Studio Code based on Java Debug Server.
Note: Both the Java Debugger for Visual Studio Code and Java Debug Server will be open sourced shortly after the initial release.
To help Java developers to get started with VS Code quickly, we also created a Java Extension Pack which includes both the Language Support for Java(TM) by Red Hat and Java Debugger for Visual Studio Code extensions so you won't need to search for them individually. This is just the start to creating a modern workflow for Java and we'll be adding more features and extensions to the Java Extension Pack in the future.
Getting started
To get started:
- In Visual Studio Code, open the Extensions view (โงโX (Windows, Linux Ctrl+Shift+X)).
- Type 'java' to filter the list.
- Find and install the Java Extension Pack or standalone Java Debugger for Visual Studio Code extension if you already have Language Support for Java(TM) by Red Hat installed.
You also install the Java Extension Pack directly from this blog post:
After reloading VS Code, open a folder that contains a Java project and follow below steps:
- Prepare the project. Open a
.java
file, and the Java extensions will be activated. Maven, Gradle and Eclipse projects are supported. Project build is automatically handled by the extensions, no need to be triggered manually. - Start debugging. Switch to Run view (โงโD (Windows, Linux Ctrl+Shift+D)) and open
launch.json
to add a debug configuration for Java. - Fill in the
mainClass
forLaunch
setting orhostName
andport
forAttach
. - Set your breakpoint and hit
F5
to start debugging.
Supported features
In this release, we support the following features:
- Launch/Attach - You can either launch the Java project within VS Code or attach to any running JVM process in debug mode, locally or remotely.
- Breakpoints - Conditional breakpoints by Hit Count is supported and can easily be set using the inline breakpoint settings window. This allows you to conveniently add conditional breakpoints to your code, directly in the source viewer, without requiring a modal window. Break on exceptions is also supported.
- Control flow - Including Pause, Continue
F5
, Step overF10
, Step intoF11
, Step outShift+F11
- Data inspection - When you're stopped at a breakpoint, the debugger has access to the variable names and values that are currently stored in memory. Inspect/Watch/Set Variables are supported.
- Diagnostics - The CALL STACK panel shows the call stack of your program and allows you to navigate through the call path of each captured allocation. Multi-threaded debugging is supported by parallel stacks.
- Debug Console - The Debug Console lets you see information from both stdout and stderr.
Future releases will include expression evaluation and hot code replacement.
Next Steps
- Checkout more about Java on VS Code
Feedback
Please share your feedback and ask questions to help us improve. You can contact us on Gitter.
Xiaokai He, @JavaOnAzure
[I'm sorry but I'm super busy now. If you want to be a maintainer of the project, please feel free to contact me! You've to be passionate about programming]
Live Server loves ๐ your multi-root workspace
Live Server for server side pages like PHP. Check Here
[For 'command not found error' #78]
Launch a local development server with live reload feature for static & dynamic pages.
Shortcuts to Start/Stop Server
[NOTE: In case if you don't have any .html
or .htm
file in your workspace then you have to follow method no 4 & 5 to start server.]
Open a project and click to
Go Live
from the status bar to turn the server on/off.Right click on a
HTML
file from Explorer Window and click onOpen with Live Server
..Open a HTML file and right-click on the editor and click on
Open with Live Server
.Hit
(alt+L, alt+O)
to Open the Server and(alt+L, alt+C)
to Stop the server (You can change the shortcut form keybinding). [On MAC,cmd+L, cmd+O
andcmd+L, cmd+C
]Open the Command Pallete by pressing
F1
orctrl+shift+P
and typeLive Server: Open With Live Server
to start a server or typeLive Server: Stop Live Server
to stop a server.
Visual Studio Debugger Command Line
Features
- A Quick Development Live Server with live browser reload.
- Start or Stop server by a single click from status bar.
- Open a HTML file to browser from Explorer menu.[Quick Gif Demo].
- Support for excluding files for change detection.
- Hot Key control.
- Customizable Port Number, Server Root, default browser.
- Support for any browser (Eg: Firefox Nightly) using advance Command Line.
- Support for Chrome Debugging Attachment (More Info). [Quick Gif Demo].
- Remote Connect through WLAN (E.g.: Connect with mobile) [Need Help? See FAQ Section]
- Use preferable host name (localhost or 127.0.0.1).
- Customizable Supporting Tag for Live Reload feature. (Default is
Body
orhead
) - SVG Support
https
Support.- Support for proxy.
- CORS Enabled
- Multi-root workspace supported.
- Support for any file even dynamic pages through Live Server Web Extension.
Installation
Open VSCode and type ctrl+P
, type ext install ritwickdey.liveserver
.
Settings
All settings are now listed here Settings Docs.
FAQs
All FAQs are now listed here FAQ Docs
What's new ?
Version 5.6.1 (17.04.19)
- [NEW] Fixing
Extension host terminated unexpectedly
*[#431
- [NEW] Fixing
Version 5.6.0 (17.04.19)
- [NEW] Intregation of
Browser Preview
withLive Server
[#352 - Thanks to Kenneth Auchenberg] - [NEW] Fallback to random port If given port is busy. [#330 - Thanks to Ali Almohaya ]
- [FIXES] Moved to
vscode-chokidar
lib for #285. - Doc Fixes [#388 - Thanks to Ted Silbernagel]
- [NEW] Intregation of
Version 5.5.1 (12.02.19)
- [Fixes] Fixed
Extension host terminated unexpectedly
for MacOS. [#285]
- [Fixes] Fixed
Version 5.5.0 (12.02.19)
- [Fixes] Fixed
ignoreFiles
settings [#255] - Attempt to fix
high cpu load
[#278]
- [Fixes] Fixed
Changelog
Visual Studio 2017 For Mac Debug Operation Failed Windows 10
To check full changelog click here.
Special Thanks To Maintainers
A special thanks to Max Schmitt, Joydip Roy & Ayo Adesugba for contributing their valueable time on this project.
LICENSE
This extension is licensed under the MIT License