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.
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
- Run command
azd init --template functions-quickstart-javascript-azd-timer
- Open the
src app folder in a new terminal.
- Run the
code . command to open the project in Visual Studio Code.
- Install dependencies:
npm install
- In the command palette (F1), type Azurite: Start, which enables debugging without warnings.
- 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:
- https://github.com/Azure-Samples/functions-quickstart-javascript-azd-timer
- https://github.com/Azure-Samples/functions-quickstart-typescript-azd-timer
- https://github.com/Azure-Samples/functions-quickstart-powershell-azd-timer
- 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.
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.
Root cause: The
srcfolder may be missing the expected VS Code debug configuration, such as.vscode/launch.jsonor related task setup.Steps to Reproduce
azd init --template functions-quickstart-javascript-azd-timersrcapp folder in a new terminal.code .command to open the project in Visual Studio Code.npm installEnvironment
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.