Skip to content

Commit

Permalink
Merge pull request #38 from Azure-Samples/feature/34-unable-to-run-an…
Browse files Browse the repository at this point in the history
…d-debug-locally-with-visual-studio-code

Add configuration for running and debugging frontend and AI Shopping …
  • Loading branch information
pmalarme authored Sep 8, 2023
2 parents 77bb833 + 54cbe89 commit ca53754
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node-terminal",
"name": "Frontend",
"command": "npm start",
"request": "launch",
"cwd": "${workspaceFolder}/src/frontend",
"preLaunchTask": "Restore all dependecies"
},
{
"type": "java",
"name": "AI Shopping Cart Service",
"request": "launch",
"mainClass": "com.microsoft.azure.samples.aishoppingcartservice.AiShoppingCartServiceApplication",
"projectName": "ai-shopping-cart-service"
}
]
}
52 changes: 52 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Restore all dependecies",
"detail": "azd restore",
"command": "azd restore",
"problemMatcher": [],
"presentation": {
"reveal": "silent",
"panel": "shared"
}
},
{
"type": "npm",
"label": "Run Frontend",
"detail": "npm start",
"script": "start",
"path": "src/frontend",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "dedicated"
},
"dependsOn": [
"Restore all dependecies"
]
},
{
"type": "shell",
"label": "Run AI Shopping Cart Service",
"command": "./mvnw spring-boot:run",
"options": {
"cwd": "${workspaceFolder}/src/ai-shopping-cart-service"
},
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "dedicated"
}
},
{
"label": "Run All",
"dependsOn": [
"Run Frontend",
"Run AI Shopping Cart Service"
],
"problemMatcher": []
}
]
}

0 comments on commit ca53754

Please sign in to comment.