Skip to content

README VS Code run/debug steps are incomplete #2

@v-xuto

Description

@v-xuto

Description

In the Run your app using Visual Studio Code section of the README, the documented steps are not sufficient to successfully start debugging the JavaScript timer sample. VS Code does not start the Azure Functions app directly. Instead, it prompts the user to select a debugger (for example, Node.js, Python Debugger, Web App, etc.), as shown in the screenshot.

Image

Root cause: The src folder may be missing the expected VS Code debug configuration, such as .vscode/launch.json or related task setup.

Steps to Reproduce

  1. Run command azd init --template functions-quickstart-javascript-azd-timer
  2. Open the src app folder in a new terminal.
  3. Run the code . command to open the project in Visual Studio Code.
  4. Install dependencies: npm install
  5. In the command palette (F1), type Azurite: Start, which enables debugging without warnings.
  6. Press Run/Debug (F5) to run in the debugger. Select Debug anyway if prompted about local emulator not running.

Environment

  • OS: Windows
  • Azd version: azd version 1.25.2 (commit 528dda50b6688ced458182ae10b771156b698b1a) (stable)
  • Templates:
  1. https://github.com/Azure-Samples/functions-quickstart-javascript-azd-timer
  2. https://github.com/Azure-Samples/functions-quickstart-typescript-azd-timer
  3. https://github.com/Azure-Samples/functions-quickstart-powershell-azd-timer
  4. https://github.com/Azure-Samples/functions-quickstart-java-azd-timer

Expected Behavior

When users follow the README instructions and press F5, the sample should start with the correct Azure Functions debug configuration automatically.

Notes: The other three azd timer templates have the same issue as well, so please fix them together. I only opened one issue to avoid creating duplicate issues.

@im-samz, @hemarina for notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions