-
Notifications
You must be signed in to change notification settings - Fork 137
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
Debugger not attaching when running via workspaces #1517
Comments
@meds perhaps this wiki page will help: https://github.com/microsoft/vscode-azurefunctions/wiki/Multiple-function-projects It has examples on how best to run multiple projects in one workspace |
Yes I did go through that, unfortunately no luck on my end. Really not sure what I'm doing wrong... If I run the azure functions seperately and then attach to it with workspaces open via:
breakpoints hit fine, it's only when running the
That it won't attach and there's a progress indicator under the debug options. |
ok I decided to wholesale copy the configs from your linked examples, it works great now with the debugger attaching through workspaces. Unfortuantely I'm running typescript and having tsc -w running over the folder causes the functions to stop working when I change a function. Is there a way around this? edit: after some investigation I found the secret sauce is:
Where if the command is replaced with npm start breakpoints stop working for workspaces but typescript recompiling does not kill the functions process. host start means breakpoints work in workspaces but ts recompiling kills the functions process. |
There's a known issue where changing a file will stop the debug session. See the following: Unfortunately we don't have a solution yet |
Ah, very curiously if you use the following task with tsc -w:
Run time recompiling works without crashing and the debugger does not disconnect. That was my original task in the first post but it doesn't work in workspaces. I'll post in that thread. If we could just fix workspaces debugger attaching with the config above it would solve all the problems. |
Closing in favor of the other linked issues |
I have a workspace set up with a few projects, one of which is an azure functions one with the following config:
When I run "Attach to Node Functions" in VSCode through the azure functions in workspaces the debugger does not attach (breakpints don't hit), there's a constant loading under the debug picker.
If I open the functions folder and run the same launch config it works fine and connects.
The terminal has no output indicating any errors.
The text was updated successfully, but these errors were encountered: