Visual Studio 2017 For Mac Debug Operation Failed

  

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.

Debug

September 28, 2017 Xiaokai He

  1. Debugger operation failed, Operation is not valid due to the current state of the object.
  2. 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:

Failed
  1. In Visual Studio Code, open the Extensions view (โ‡งโŒ˜X (Windows, Linux Ctrl+Shift+X)).
  2. Type 'java' to filter the list.
  3. 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:

  1. 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.
  2. Start debugging. Switch to Run view (โ‡งโŒ˜D (Windows, Linux Ctrl+Shift+D)) and open launch.json to add a debug configuration for Java.
  3. Fill in the mainClass for Launch setting or hostName and port for Attach.
  4. 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, ContinueF5, 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

Visual Studio 2017 For Mac Debug Operation Failed

[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.]

  1. Open a project and click to Go Live from the status bar to turn the server on/off.

  2. Right click on a HTML file from Explorer Window and click on Open with Live Server..

  3. Open a HTML file and right-click on the editor and click on Open with Live Server.

  4. 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 and cmd+L, cmd+C]

  5. Open the Command Pallete by pressing F1 or ctrl+shift+P and type Live Server: Open With Live Server to start a server or type Live 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 or head)
  • 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.
Failed

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

Visual studio 2017 for mac debug operation failed windows 10

What's new ?

  • Version 5.6.1 (17.04.19)

    • [NEW] Fixing Extension host terminated unexpectedly *[#431
  • Version 5.6.0 (17.04.19)

    • [NEW] Intregation of Browser Preview with Live 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]
  • Version 5.5.1 (12.02.19)

    • [Fixes] Fixed Extension host terminated unexpectedly for MacOS. [#285]
  • Version 5.5.0 (12.02.19)

    • [Fixes] Fixed ignoreFiles settings [#255]
    • Attempt to fix high cpu load [#278]

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