-
Notifications
You must be signed in to change notification settings - Fork 344
chore: add VS Code Azure Functions debug setup for gofuncapp #9315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
10a15d4
86c0274
a1bc3ea
9034ecd
2082dc8
d00ac9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| { | ||
| // See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
| // for the documentation about the extensions.json format | ||
| "recommendations": [ | ||
| "streetsidesoftware.code-spell-checker", | ||
| "redhat.vscode-yaml" | ||
| ] | ||
| } | ||
| "recommendations": [ | ||
| "ms-azuretools.vscode-azurefunctions", | ||
| "ms-python.python" | ||
| ] | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This drops the trailing newline on a file that otherwise had one. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,24 +9,31 @@ | |
| // to ensure git tracks changes to this file again. | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| // If you set `AZD_DEBUG=true` in your environment, `azd` will pause early in start up and allow you to attach | ||
| // to it. Use the Attach to Process configuration and pick the corresponding `azd` process. | ||
| { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This drops the comment that explained |
||
| "name": "Attach to Process", | ||
| "type": "go", | ||
| "request": "attach", | ||
| "mode": "local", | ||
| "processId": "${command:pickGoProcess}" | ||
| }, | ||
| // This will launch azd cli (starting from cli/azd/main.go), under the debugger. | ||
| { | ||
| "name": "Debug azd cli", | ||
| "type": "go", | ||
| "request": "launch", | ||
| "mode": "debug", | ||
| "program": "${workspaceFolder}/cli/azd", | ||
| "args": "${input:cliArgs}", | ||
| "console": "integratedTerminal", | ||
| "console": "integratedTerminal" | ||
| }, | ||
| { | ||
| "name": "Attach to Python Functions", | ||
| "type": "debugpy", | ||
|
Fernadoteixeira marked this conversation as resolved.
Outdated
|
||
| "request": "attach", | ||
| "connect": { | ||
| "host": "localhost", | ||
| "port": 9091 | ||
| }, | ||
| "preLaunchTask": "func: host start" | ||
| } | ||
| ], | ||
| "inputs": [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "type": "func", | ||
| "label": "func: host start", | ||
| "command": "host start", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I installed Core Tools 4.5.0 and ran Two things behind that. The fixture has no As a Did this launch for you locally? If it did, knowing your Core Tools version would help, because it doesn't on 4.5.0. Otherwise this needs a |
||
| "problemMatcher": "$func-python-watch", | ||
| "isBackground": true, | ||
| "dependsOn": "pip install (functions)", | ||
| "options": { | ||
| "cwd": "${workspaceFolder}/cli\\azd\\test\\functional\\testdata\\samples\\gofuncapp" | ||
|
Fernadoteixeira marked this conversation as resolved.
Outdated
|
||
| } | ||
| }, | ||
| { | ||
| "label": "pip install (functions)", | ||
| "type": "shell", | ||
| "osx": { | ||
| "command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt" | ||
|
Fernadoteixeira marked this conversation as resolved.
Outdated
|
||
| }, | ||
| "windows": { | ||
| "command": "${config:azureFunctions.pythonVenv}\\Scripts\\python -m pip install -r requirements.txt" | ||
| }, | ||
| "linux": { | ||
| "command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt" | ||
| }, | ||
| "problemMatcher": [], | ||
| "options": { | ||
| "cwd": "${workspaceFolder}/cli\\azd\\test\\functional\\testdata\\samples\\gofuncapp" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .venv | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
azd uses |
||
Uh oh!
There was an error while loading. Please reload this page.