Update daprdocs/content/en/developing-applications/ides/visual-studio-code/vscode-dapr-extension.md

Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
This commit is contained in:
jasonviviano 2021-07-12 11:24:13 -04:00 committed by GitHub
parent f7de10098e
commit a44cc7898a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 28 deletions

View File

@ -13,36 +13,16 @@ Dapr offers a *preview* [Dapr Visual Studio Code extension](https://marketplace.
## Features
### Scaffold Dapr tasks
### Scaffold Dapr debugging tasks
* Helps scaffold VS Code task.json and launch.json configurations needed to debug your application within the Dapr environment.
* Requires an already existing launch.json files to be found in the VS Code workspace.
* Example NodeJS app:
The Dapr extension helps you debug your applications with Dapr using Visual Studio Code's [built-in debugging capability](https://code.visualstudio.com/Docs/editor/debugging).
After scaffolding the launch.json should contain similar snippets:
```json
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program with Dapr",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/app.js",
"preLaunchTask": "daprd-debug",
"postDebugTask": "daprd-down"
}
```
After scaffolding the task.json should contain similar snippets:
Using the `Dapr: Scaffold Dapr Tasks` [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) operation, you can update your existing `task.json` and `launch.json` files to launch and configure the Dapr sidecar when you begin debugging.
```json
{
"appId": "nodeapp",
"appPort": 3500,
"label": "daprd-debug",
"type": "daprd"
}
```
1. Make sure you have a launch configuration set for your app. ([Learn more](https://code.visualstudio.com/Docs/editor/debugging))
1. Open the Command Palette with `Ctrl+Shift+P`
1. Select `Dapr: Scaffold Dapr Tasks`
1. Run your app and the Dapr sidecar with `F5` or via the Run view.
### Scaffold Dapr components
* Generates the Dapr component assets needed for general Dapr applications.
@ -93,4 +73,4 @@ If you dont wish to send usage data to Microsoft, you can set the `telemetry.
Using the VS Code extension, you can debug multiple Dapr applications at the same time with [Multi-target debugging](https://code.visualstudio.com/docs/editor/debugging#_multitarget-debugging).
### Community call demo
Watch this [video](https://www.youtube.com/watch?v=OtbYCBt9C34&t=85) on how to use the Dapr VS Code extension:
<iframe width="560" height="315" src="https://www.youtube.com/embed/OtbYCBt9C34?start=85" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/OtbYCBt9C34?start=85" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>