Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"azureFunctions.projectRuntime": "~4",
"debug.internalConsoleOptions": "neverOpen",
"azureFunctions.projectLanguageModel": 2,
"azureFunctions.pythonVenv": ".venv"
"azureFunctions.pythonVenv": ".venv",
"python.defaultInterpreterPath": "${workspaceFolder}/src/.venv"
}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,16 @@ The `TIMER_SCHEDULE` setting defines when your timer function runs using NCRONTA

## Run your app using Visual Studio Code

1. Open the `src` app folder in a new terminal.
1. Open the repository root, not the `src` app folder, in a new terminal.
2. Run the `code .` command to open the project in Visual Studio Code.
The repository-root `.vscode` configuration runs the Functions host and
dependency tasks from `src` and deploys that folder. Before debugging, create
the environment from the repository root using `python -m venv src/.venv`
(or `py -m venv src\.venv` on Windows), using a Python version from the
prerequisites.
If an interpreter was previously selected, run **Python: Select Interpreter**
and select the environment in `src/.venv`. The default interpreter setting is
only used when the Python extension first loads a workspace.
3. In the command palette (F1), type `Azurite: Start`, which enables debugging without warnings.
4. Press **Run/Debug (F5)** to run in the debugger. Select **Debug anyway** if prompted about local emulator not running.
5. Wait for the timer schedule to trigger your timer function.
Expand Down
6 changes: 0 additions & 6 deletions src/.vscode/extensions.json

This file was deleted.

15 changes: 0 additions & 15 deletions src/.vscode/launch.json

This file was deleted.

12 changes: 0 additions & 12 deletions src/.vscode/settings.json

This file was deleted.

33 changes: 0 additions & 33 deletions src/.vscode/tasks.json

This file was deleted.