Add tip to show worker logs to README (#525)
This commit is contained in:
Родитель
fb24914558
Коммит
7a84c77ae1
|
@ -23,7 +23,9 @@
|
|||
- In the local function app, add the following settings to your "local.settings.json" file or configure them directly as environment variables
|
||||
- `languageWorkers__node__workerDirectory`: `<path to the root of this repository>`
|
||||
- `languageWorkers__node__arguments`: `--inspect`
|
||||
> NOTE: If you need to debug worker initialization, use `--inspect-brk` instead of `--inspect`. Just keep in mind you need to attach the debugger within 30 seconds or the host process will timeout.
|
||||
> 💡 Tip #1: Set `logging__logLevel__Worker` to `debug` if you want to view worker-specific logs in the output of `func start`
|
||||
|
||||
> 💡 Tip #2: If you need to debug worker initialization, use `--inspect-brk` instead of `--inspect`. Just keep in mind you need to attach the debugger within 30 seconds or the host process will timeout.
|
||||
- Start the local function app (i.e. run `func start` or press <kbd>F5</kbd>)
|
||||
- Back in the worker repository, press <kbd>F5</kbd> and select the process for your running function app
|
||||
- Before you submit a PR, run `npm run lint` and `npm test` and fix any issues. If you want to debug the tests, switch your [launch profile](https://code.visualstudio.com/docs/editor/debugging) in VS Code to "Launch Unit Tests" and press <kbd>F5</kbd>.
|
||||
|
|
Загрузка…
Ссылка в новой задаче