GithubHelp home page GithubHelp logo

vscode-dotnet-watch's Introduction


logo
VS Code - .NET Watch

Enables a seamless debugging experience when working with dotnet-watch.

The ".NET Watch" extension is created to enable a .Net Core debugging experience closer to Visual Studio. ".NET Watch" re-attaches the debugger for seamless debugging experience.

Getting Started

  1. Install the extension
  2. Open the folder containing .net core Project(s).
  3. Press F5 and select .NET Watch
  4. Save file changes and ๐Ÿคฏ


logo logo

Supports launch profiles (Visual Studio)

Launch Profiles has limited supported for VS Code but it works based on personal tests

Sample launch config for a compound tasks

Multiple projects can be debugged in a single launch by using compound tasks.

[
	{
		"type": "DotNetWatch",
		"request": "launch",
		"name": ".NET Core Watch: dotnet-test.console",
		"project": "dotnet-test.console.csproj",
		"env": {
			"ASPNETCORE_ENVIRONMENT": "Development"
		}
	},
	{
		"type": "DotNetWatch",
		"request": "launch",
		"name": ".NET Core Watch: dotnet-test2.console",
		"env": {
			"ASPNETCORE_ENVIRONMENT": "Development",
			"DOTNET_WATCH_RESTART_ON_RUDE_EDIT": "true"
		},
		"launchBrowser": {
			"enabled": true,
			"args": "${auto-detect-url}",
			"windows": {
				"command": "cmd.exe",
				"args": "/C start ${auto-detect-url}"
			},
			"osx": {
				"command": "open"
			},
			"linux": {
				"command": "xdg-open"
			}
		}
	}
]
...
"compounds": {
	{
		"name": "Watch all",
		"configurations": [
			".NET Core Watch: dotnet-test2.console",
			".NET Core Watch: dotnet-test.console"
		]
	}
}

Configuration Attributes

Configuration Attributes Type Description Default
args string[] Command line arguments passed to the program. []
env object Environment variables passed to the program. (note: this has precedence over Visual Studio Launch Profiles) {}
project string The project (.csproj) to start, if not provided, a quick pick menu will appear ""

For existing Launch.json

Delete it and generate or update launch.json configuration type from "coreclr" to "DotNetWatch" and remove the "preLaunchTask", "program", "cwd" (feel free to add them if you need)

Release Notes & Known Issues

See the CHANGELOG.md for the details of changes for each version and known issues.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

vscode-dotnet-watch's People

Contributors

brightsoul avatar murugaratham avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.