-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add log to signify when debugger can attach #4384
Comments
@kashimiz moving this back to triaged, but can you comment whether there was any progress made here? |
Hi @fabiocav, This also causes Azure/azure-functions-python-worker#607 @mhoeger and I investigated the same issue happens in Python worker VSCode. However, for Python scenario, the languageWorkers__python__arguments environment variable is set to The actual issue occurs when the processes start in the following order:
In this case, the debugger client will attach to the server before the Python worker starts, causing the process to fail. So my suggestion is to emit a |
Assigned this to current sprint. Will send a PR soon. |
@EricJizbaMSFT - I sent a PR adding a log that gets emitted after a worker process starts. Is there a way we can test this? |
Yeah you can override the default problemMatcher in
Then just change the "Host lock lease" regular expression to match your new log |
@pragnagopa Could you please confirm if the message is printed:
We're going to work on reducing verbosity of Core Tools and will likely use log levels to control what gets printed. Azure/azure-functions-core-tools#1131 |
@Hazhzeng: FYI @vrdmr and I were helping someone last week who was running into an issue that looks like what you're describing here: #4384 (comment) |
In the VS Code extension, we look for
Host lock lease acquired by instance ID
to signal that we can attach the debugger. We originally usedJob host started
but that apparently didn't work in all cases - see microsoft/vscode-azurefunctions#660.However, the "host lock lease" message doesn't always get printed - see here. We ran into this when trying to debug with Azurite, which doesn't seem to work well with leases - see here. A few other concerns:
Can we add a message that's sole purpose is to signify that debuggers can attach? I think the problem with
Job host started
in microsoft/vscode-azurefunctions#660 was that the worker wasn't fully started yet. Perhaps we just need a message likeLanguage worker started
? I honestly don't really care about the wording as long as it meets these criteria:The text was updated successfully, but these errors were encountered: