Skip to content

Add VS Code debugging for Node Azure Functions - #20943

Merged
Mitch Denny (mitchdenny) merged 5 commits into
mainfrom
mitchdenny-functions-extension-debugging
Oct 14, 2026
Merged

Mitch Denny (mitchdenny) merged 5 commits into
mainfrom
mitchdenny-functions-extension-debugging

Conversation

@mitchdenny

@mitchdenny Mitch Denny (mitchdenny) commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Description

Adds the VS Code extension debugger follow-up split from #17980 so TypeScript and JavaScript Azure Functions apps can be launched under Core Tools and attached with the Node debugger.

The parent #17980 has merged. This PR targets main and preserves the parent's final constructor validation, deployment subscription handling, and .npmrc build-context exclusion.

Restores effective environment propagation, inspector-port reservation through task launch, separate Node Functions E2E prerequisites, handled-exception diagnostics, documentation, and tests.

The external-consumer Node Functions E2E fixture uses Microsoft.NET.Sdk, AspireUseCliBundle, and matching PR-built Aspire.Hosting.AppHost and Aspire.Hosting.Azure.Functions packages. It does not reference the repository project, avoiding mixed repository-central and external transitive Azure Storage versions. The fixture gets its package version from the E2E runner instead of assuming the generated template contains the now-deprecated Aspire.AppHost.Sdk directive.

User-facing usage

With the Aspire VS Code extension installed, debugging an AppHost containing a TypeScript or JavaScript Azure Functions app starts Azure Functions Core Tools, reserves a loopback Node inspector port until task launch, attaches pwa-node, and stops the task when the debug session ends.

The playground launch configuration demonstrates the scenario with AzureFunctionsWithStorage.

Screenshots are not useful evidence for this debugger-orchestration change. The passing live Node Functions E2E proof installs real source breakpoints, sends an HTTP request, verifies the pwa-node stack frame, and verifies Core Tools and the inspector are cleaned up.

Validation

CI run 38341117446 passed for head 2ea2231f0fae7f3cd2c3d89a614a06fc7de3cb51, including the live Node Functions debugger E2E and final results gate. All 104 visible PR checks finished successfully or were intentionally skipped; none remain pending or failing.

Local validation after the package-based fixture fix:

  • Passed: cd extension && corepack yarn run compile-e2e
  • Passed: cd extension && corepack yarn run compile-tests
  • Passed: cd extension && corepack yarn run lint
  • Passed (170 tests): cd extension && corepack yarn run unit-test --grep "Azure Functions|E2E launch profile|E2E shard matrix"

Earlier post-rebase validation:

  • Passed (3,665 tests; 16 pending, plus compile and lint): cd extension && corepack yarn test
  • Passed (1 test, including project build): export PATH="$PWD/.dotnet:$PATH" && dotnet test --project tests/Aspire.Hosting.Azure.Tests/Aspire.Hosting.Azure.Tests.csproj --no-launch-profile -- --filter-method "*.AddAzureFunctionsApp_DoesNotModelNodeDebugEndpoint" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"

Initial validation also passed ./restore.sh and export PATH="$PWD/.dotnet:$PATH" && dotnet build src/Aspire.Hosting.Azure.Functions/Aspire.Hosting.Azure.Functions.csproj /p:SkipNativeBuild=true --no-restore.

Host limitation: an initial combined build attempt encountered Xcode-dependent CLI/dashboard targets on this macOS host, which has Command Line Tools rather than full Xcode. Local targeted validations passed independently, and the current CI run passed its selected builds and tests.

Fixes # (issue)

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Mitch Denny (mitchdenny) added a commit that referenced this pull request Oct 13, 2026
## Description

This adds a proof-of-concept path for Azure Functions apps that are not
.NET projects, starting with TypeScript and JavaScript on the Node
worker. The goal is to let a TypeScript AppHost model, run, publish, and
deploy a TypeScript Azure Functions app the same way it models the rest
of a distributed app.

The change introduces a directory-based Azure Functions app resource,
local Core Tools launch behavior, and deterministic Dockerfile
publishing for TypeScript/JavaScript Functions containers.

VS Code debugger support was split into the stacked follow-up #20943 so
the hosting and deployment support can land independently.

A new playground sample demonstrates the scenario end to end: a
TypeScript AppHost, TypeScript Azure Function, Azure Storage dependency,
and Vite TypeScript frontend. Locally, the frontend proxies `/api` to
the Aspire-modeled Functions endpoint. In Azure Container Apps, the
frontend is published as a static site with `/api` routed to the
Functions container.

Related to #17979

### User-facing usage

TypeScript AppHost:

```typescript
const functions = await builder
    .addAzureFunctionsApp("functions", "../Functions", AzureFunctionsLanguage.TypeScript)
    .withExternalHttpEndpoints()
    .withReference(samples).waitFor(samples);

await builder
    .addViteApp("frontend", "../Frontend")
    .withEnvironment("FUNCTIONS_BASE_URL", functions.getEndpoint("http"))
    .waitFor(functions)
    .publishAsStaticWebsite({
        apiPath: "/api",
        apiTarget: functions
    })
    .withExternalHttpEndpoints();
```

Generated TypeScript Functions Dockerfile publish uses the official
Functions Node host image shape, builds TypeScript during container
build, and exposes container port 80 for ACA `kind: functionapp`
deployment.

### Security considerations

This change adds support for launching Node-based Azure Functions apps
locally and publishing them as containers. The sample frontend adds a
static-site reverse proxy route from `/api` to the Functions resource.
Security review has not been completed yet because this is a POC.

### Validation

- Passed: `./restore.sh`
- Passed (67 tests): `dotnet test --project
tests/Aspire.Hosting.Azure.Tests/Aspire.Hosting.Azure.Tests.csproj
--no-launch-profile -- --filter-class "*.AzureFunctionsTests"
--filter-class "*.FunctionsPublicApiTests" --filter-not-trait
"quarantined=true" --filter-not-trait "outerloop=true"`
- Passed: `dotnet build
tests/Aspire.Deployment.EndToEnd.Tests/Aspire.Deployment.EndToEnd.Tests.csproj
--no-restore --nologo`
- Clean isolated local `aspire start` for the TypeScript AppHost
- `aspire wait functions` and `aspire wait frontend`
- Local frontend `/api/storageHttpTrigger?name=Frontend` call wrote a
blob to the modeled `samples` container
- `aspire publish` emitted Functions and frontend container artifacts,
including ACA Bicep, Functions `kind: 'functionapp'`, target port 80,
frontend YARP static-site routing, and storage role assignments
- Real `aspire deploy` to ACA in `rg-aspire-ts-functions-poc` succeeded
- Deployed frontend `/api/storageHttpTrigger?name=ACAFrontend` returned
HTTP 200 and wrote a blob
- Passed: `git diff --check`

Fixes # (issue)

## Checklist

- Is this feature complete?
  - [ ] Yes. Ready to ship.
  - [x] No. Follow-up changes expected.
- Are you including unit tests for the changes and scenario tests if
relevant?
  - [x] Yes
  - [ ] No
- Did you add public API?
  - [x] Yes
    - If yes, did you have an API Review for it?
      - [ ] Yes
      - [x] No
- Did you add `<remarks />` and `<code />` elements on your triple slash
comments?
      - [ ] Yes
      - [x] No
  - [ ] No
- Does the change make any security assumptions or guarantees?
  - [x] Yes
    - If yes, have you done a threat model and had a security review?
      - [ ] Yes
      - [x] No
  - [ ] No

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Mitch Denny <[email protected]>
Copilot-Session: 9758c021-6791-46c1-81f0-c31dd977b996
Copilot-Session: ba624858-8d8b-431c-afa7-b672f0c74ac2
Restore the reviewed extension debugger support split from the Functions language changes, and keep the external-consumer E2E fixture on the PR-built Azure Functions hosting package.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 36c01d16-3dc7-4ef2-80cc-1a0f40c862ca
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20943

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20943"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new launch type is not tracked for editor assistance, and the existing documented .NET Functions E2E command no longer installs its required debugger extensions.

2 open findings
What changed in this PR

Adds run-mode VS Code debugging for Node-based Azure Functions using Core Tools and pwa-node.

Changes:

  • Adds Node Functions launch metadata and debugger orchestration.
  • Adds unit and E2E coverage, fixtures, and CI prerequisites.
  • Documents debugging behavior and playground usage.
File Description
tests/​Aspire.Hosting.Azure.Tests/​AzureFunctionsTests.cs Verifies no debug endpoint is modeled.
src/​Aspire.Hosting.Azure.Functions/​AzureFunctionsProjectResourceExtensions.cs Emits Node Functions debug metadata.
playground/​TypeScriptApps/​AzureFunctionsWithStorage/​.vscode/​launch.json Adds a playground launch configuration.
extension/​src/​types/​extensionApi.ts Extends E2E control contracts.
extension/​src/​testing/​e2eStateFileBridge.ts Adds DCP and exception diagnostics.
extension/​src/​test/​strings.test.ts Tests localization catalogs.
extension/​src/​test/​fixtures/​azure-functions-node/​HttpProof/​index.js Adds the debugger fixture handler.
extension/​src/​test/​fixtures/​azure-functions-node/​HttpProof/​function.json Defines the HTTP trigger.
extension/​src/​test/​fixtures/​azure-functions-node/​host.json Configures the Functions host.
extension/​src/​test/​e2eShardMatrix.test.ts Validates Node Functions shard routing.
extension/​src/​test/​e2eLaunchProfile.test.ts Validates E2E runner configuration.
extension/​src/​test/​azureFunctionsNodeDebugger.test.ts Tests debugger setup and cleanup.
extension/​src/​test-e2e/​packageSurface.e2e.test.ts Verifies advertised DCP capability.
extension/​src/​test-e2e/​azureFunctionsNode.e2e.test.ts Adds the live debugging proof.
extension/​src/​loc/​strings.ts Adds the localized allocation error.
extension/​src/​debugger/​languages/​azureFunctions.ts Implements Node Functions debugging.
extension/​src/​debugger/​debuggerExtensions.ts Registers the debugger extension.
extension/​src/​dcp/​types.ts Defines Node Functions launch metadata.
extension/​src/​capabilities.ts Advertises Node Functions support.
extension/​scripts/​run-e2e.js Separates Functions E2E prerequisites.
extension/​package.nls.json Adds localization source text.
extension/​loc/​xlf/​aspire-vscode.xlf Updates generated localization data.
extension/​CONTRIBUTING.md Documents the new E2E shard.
.github/​workflows/​extension-e2e-tests.yml Adds the Linux Node Functions shard.

🧠 Review effort: Balanced

Comment thread extension/scripts/run-e2e.js Resolved
Comment thread extension/src/dcp/types.ts Resolved
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 36c01d16-3dc7-4ef2-80cc-1a0f40c862ca
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unresolved debugger-contract, environment-preservation, localization, and E2E setup issues remain.

2 open findings
Previously missed (2)

In code that hasn't changed since last review

Medium severity Preserve existing Node worker arguments when adding inspector options

extension/​src/​debugger/​languages/​azureFunctions.ts:795

This overwrites any user-provided languageWorkers__node__arguments already present in effectiveEnv, so Node worker flags such as memory or diagnostics settings silently disappear whenever debugging starts. Preserve the existing arguments while adding the inspector option, with explicit handling for an existing inspector flag, and cover that case in the environment-propagation test.

Low severity Localize debug-session labels through the extension localization path

extension/​src/​debugger/​languages/​azureFunctions.ts:739

These values become user-visible debug-session names, but the new labels bypass the extension localization path. Define localized formatter/fallback strings in extension/src/loc/strings.ts (and the catalog) and use them here so non-English VS Code sessions can translate the label.

🧠 Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Read the PR package version from the E2E runner instead of assuming the template emits an Aspire.AppHost.Sdk directive. Match the current Microsoft.NET.Sdk and Aspire.Hosting.AppHost package-based template while keeping Functions package versions aligned.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 36c01d16-3dc7-4ef2-80cc-1a0f40c862ca
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The Functions host task can exit while restart: true leaves the Node debugger session waiting indefinitely.

2 open findings
Previously missed (1)

In code that hasn't changed since last review

Medium severity Stop debug session when Functions host task ends

extension/​src/​debugger/​languages/​azureFunctions.ts:844

restart: true keeps the attach session alive and waiting for the inspector to reappear when the Node worker exits. Because Core Tools is launched as a separate task and this path never subscribes to that task's end event, a crashed or failed Functions host leaves Aspire with a resource debug session that waits indefinitely instead of terminating. Track the exact TaskExecution with onDidEndTaskProcess and stop the corresponding debug session when the host task ends; retain restart only for worker restarts while that task is still running.

🧠 Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the Node Functions launch metadata, capability negotiation, Core Tools/inspector lifecycle, environment handling, and the unit/E2E/CI changes.

I found one additional console-log forwarding issue beyond the feedback already raised.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 36c01d16-3dc7-4ef2-80cc-1a0f40c862ca
@github-actions

This comment has been minimized.

Map azure-functions-node launch configurations to their structured app directory and cover TypeScript, JavaScript, and empty path handling.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 36c01d16-3dc7-4ef2-80cc-1a0f40c862ca

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Task-exit lifecycle, worker-argument preservation, and launch-target correlation have unresolved correctness issues.

0 open findings

2 resolved since last review
Previously missed (1)

In code that hasn't changed since last review

Medium severity Preserve existing Node worker arguments when adding inspector

extension/​src/​debugger/​languages/​azureFunctions.ts:795

This overwrites any languageWorkers__node__arguments supplied by the AppHost or the user's debugger configuration. That setting carries all Node worker arguments, so debugging currently drops non-inspector flags and can change application behavior. Preserve the existing non-inspector arguments while replacing or appending the allocated --inspect option, and cover that case in the effective-environment test.

This issue also appears on line 844 of the same file.

🧠 Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

4 / 99 PR test projects · 4 PR jobs, from 24 changed files.

Selected PR test projects (4 / 99)

Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests, Aspire.Playground.Tests, Infrastructure.Tests

Selected PR jobs (4)

extension-e2e, extension-unit, polyglot, typescript-api-compat


How these were chosen — grouped by what changed

🔧 src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests
→ 1 via the project graph: Aspire.Playground.Tests (2 hops)

🧪 tests/Aspire.Hosting.Azure.Tests/AzureFunctionsTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests
→ 1 via the project graph: Aspire.Hosting.Azure.Kubernetes.Tests

📄 .github/workflows/extension-e2e-tests.yml (changed)
→ 1 directly: Infrastructure.Tests

📄 playground/TypeScriptApps/AzureFunctionsWithStorage/.vscode/launch.json (changed)
→ 1 directly: Aspire.Playground.Tests

Job reasons

Job Triggered by
extension-e2e • .github/workflows/extension-e2e-tests.yml, extension/loc/xlf/aspire-vscode.xlf, extension/package.nls.json, extension/scripts/run-e2e.js, extension/src/capabilities.ts, extension/src/dcp/types.ts, extension/src/debugger/debuggerExtensions.ts, extension/src/debugger/languages/azureFunctions.ts, extension/src/loc/strings.ts, extension/src/test-e2e/azureFunctionsNode.e2e.test.ts, extension/src/test-e2e/packageSurface.e2e.test.ts, extension/src/test/azureFunctionsNodeDebugger.test.ts, extension/src/test/dcpTypes.test.ts, extension/src/test/e2eLaunchProfile.test.ts, extension/src/test/e2eShardMatrix.test.ts, extension/src/test/fixtures/azure-functions-node/HttpProof/function.json, extension/src/test/fixtures/azure-functions-node/HttpProof/index.js, extension/src/test/fixtures/azure-functions-node/host.json, extension/src/test/strings.test.ts, extension/src/testing/e2eStateFileBridge.ts, extension/src/types/extensionApi.ts, src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs
• affected project Aspire.Hosting.Azure.Functions
extension-unit .github/workflows/extension-e2e-tests.yml, extension/loc/xlf/aspire-vscode.xlf, extension/package.nls.json, extension/scripts/run-e2e.js, extension/src/capabilities.ts, extension/src/dcp/types.ts, extension/src/debugger/debuggerExtensions.ts, extension/src/debugger/languages/azureFunctions.ts, extension/src/loc/strings.ts, extension/src/test-e2e/azureFunctionsNode.e2e.test.ts, extension/src/test-e2e/packageSurface.e2e.test.ts, extension/src/test/azureFunctionsNodeDebugger.test.ts, extension/src/test/dcpTypes.test.ts, extension/src/test/e2eLaunchProfile.test.ts, extension/src/test/e2eShardMatrix.test.ts, extension/src/test/fixtures/azure-functions-node/HttpProof/function.json, extension/src/test/fixtures/azure-functions-node/HttpProof/index.js, extension/src/test/fixtures/azure-functions-node/host.json, extension/src/test/strings.test.ts, extension/src/testing/e2eStateFileBridge.ts, extension/src/types/extensionApi.ts
polyglot affected project Aspire.Hosting.Azure.Functions
typescript-api-compat affected project Aspire.Hosting.Azure.Functions

Selection computed for commit fee347b.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Core Tools exits are not propagated to DCP, and handled exception stops can falsely satisfy the E2E breakpoint proof.

0 open findings

Previously missed (2)

In code that hasn't changed since last review

Medium severity Handle executeTask process exits to prevent stuck sessions

extension/​src/​debugger/​languages/​azureFunctions.ts:828

executeTask is launched but its process lifetime is never observed. If Core Tools exits because of invalid host configuration, a port conflict, or a later crash, the restart: true attach session can remain waiting for an inspector after DCP has marked the resource running, and the task/port cleanup remains registered until the user stops the run. Register onDidEndTaskProcess before launch, match the exact task/execution as the .NET Functions path does at lines 957-988, and fail or terminate this resource session; add an early-task-exit regression test.

Medium severity Exclude handled exceptions from breakpoint stop detection

extension/​src/​testing/​e2eStateFileBridge.ts:1393

Handled exception events are still added to stoppedEvents before they are continued. waitForBreakpoint scans this array without checking reason, so a handled exception whose stack lands on the requested AppHost line can satisfy the proof as if the source breakpoint fired; the new E2E test also does not assert the AppHost stop reason. Keep these handled events only in exceptionStops so they cannot satisfy breakpoint waits.

🧠 Review effort: Balanced

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the Node Functions launch metadata and capabilities, debugger configuration, Core Tools/inspector lifecycle, environment propagation, and the test/CI changes. I didn't find additional high-confidence issues beyond the feedback already raised.

I locally exercised the PR's debugger callback in a real VS Code Extension Development Host on Windows ARM64 using Core Tools 4.12.1 and Node 22. With default attach settings, pwa-node hit the JavaScript HTTP-handler source breakpoint, the request returned the expected response, and cleanup ended the same Core Tools task and closed the inspector port.

The 40 focused debugger, DCP, Functions launch-profile, and shard-matrix tests passed. Extension compilation, test compilation, E2E compilation, and lint also passed. The live proof used a temporary harness; I didn't rerun the full packaged AppHost E2E or verify TypeScript source-map breakpoints locally.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@mitchdenny
Mitch Denny (mitchdenny) enabled auto-merge (squash) October 14, 2026 01:40
@mitchdenny
Mitch Denny (mitchdenny) merged commit 4de47f1 into main Oct 14, 2026
196 of 200 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Oct 14, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1889

Generated by PR Documentation Check · copilot · auto · 68.8 AIC · ⌖ 11.2 AIC · ⊞ 20.4K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1889 targeting release/17.0.

Documented the VS Code extension's new Node.js/TypeScript Azure Functions debugger behavior introduced by this PR. Triggered signals: pr_body_has_user_facing_section (PR body's "User-facing usage" section describes starting Core Tools, reserving a loopback Node inspector port, and attaching pwa-node), pr_body_has_cli_flag_mention (references to extension test commands), and pr_body_has_deprecation_marker (mentions the deprecated Aspire.AppHost.Sdk directive, not itself a doc-worthy change). Updated src/frontend/src/content/docs/get-started/aspire-vscode-extension.mdx's "Language coverage" section with a short paragraph explaining the Node-worker Core Tools/pwa-node attach flow and the new debuggers["azure-functions-node"] launch.json key, based on extension/src/debugger/languages/azureFunctions.ts and extension/src/capabilities.ts diffs.

Note

This draft PR needs human review before merging.

Ella Hathaway (ellahathaway) added a commit to microsoft/aspire.dev that referenced this pull request Oct 27, 2026
## Summary

<!-- Describe what this pull request changes and why. -->

Documents the VS Code debugging support added by microsoft/aspire#20943
for JavaScript and TypeScript Azure Functions apps.

- Explain loopback inspector-port reservation until task launch, Azure
Functions Core Tools task startup, and attachment with VS Code's
built-in `pwa-node` debugger.
- Document the supported cleanup direction: stopping the Aspire debug
session stops the Functions task.
- Add `azure-functions-node` to the existing debugger configuration keys
and explain when to use it instead of `node`.
- Split Azure Functions language coverage into C#/.NET and
JavaScript/TypeScript rows, with the correct debugger and extension
requirements.

Targets `release/17.0`, matching the source PR's milestone.
Implementation details were verified against the source PR's merge
commit `4de47f1f1b0078ee62dc25f5a03b30e1e1ee9471`.

## Third-party links and affiliations

<!--
List any third-party links added or changed by this pull request and
disclose any
material affiliation with the linked organizations, such as employment,
sponsorship, or ownership. Write "None" if this pull request doesn't add
or
change third-party links.
-->

None. The table reuses the existing Microsoft VS Code Marketplace links.

## Validation

<!-- List the checks you ran or explain why validation isn't needed. -->

- `git diff --check`: passed.
- MDX syntax compilation with table support: passed. Exact command, run
from `src/frontend`:

```powershell
node --input-type=module -e 'import { readFile } from "node:fs/promises"; import { compile } from "@mdx-js/mdx"; import remarkGfm from "remark-gfm"; await compile(await readFile("src/content/docs/get-started/aspire-vscode-extension.mdx", "utf8"), { remarkPlugins: [remarkGfm] }); console.log("Edited MDX compiles successfully.");'
```

- The earlier local browser preview verified the new configuration-key
guidance and both language-specific table rows. A repeat preview for the
final paragraph correction was attempted with `pnpm --dir src\frontend
dev` and `npx --yes @playwright/cli -s=docs1889-correction open
http://localhost:4321/get-started/aspire-vscode-extension/`, but could
not connect before the preview was stopped; final rendering was not
reverified.
- Source verification confirms inspector-port reservation, Core Tools
task startup, `pwa-node` attachment, cleanup of the Functions task when
the Aspire debug run stops, and independent registration of the Node
Functions debugger without the Azure Functions VS Code extension.

The browser and temporary dev server were stopped. No production build
or full test suite was run for this prose/table-only change.

<!-- gh-aw-agentic-workflow: PR Documentation Check, engine: copilot,
model: auto, id: 38497052797, workflow_id: pr-docs-check, run:
https://github.com/microsoft/aspire/actions/runs/38497052797 -->
<!-- gh-aw-workflow-id: pr-docs-check -->
<!-- gh-aw-workflow-call-id: microsoft/aspire/pr-docs-check -->

---------

Co-authored-by: aspire-repo-bot[bot] <268009190+aspire-repo-bot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Ella Hathaway <[email protected]>
Copilot-Session: 6c564cc7-36e2-4cac-b334-c50fb7faa6b6
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants