Skip to content
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 guidance on how to debug the application (VS / VS Code Debugger) #134

Open
Tracked by #251 ...
luisquintanilla opened this issue Aug 15, 2023 · 7 comments
Open
Tracked by #251 ...
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@luisquintanilla
Copy link
Collaborator

No description provided.

@Autoradiowecker
Copy link

I have the same Issue. Any suggestions to debugging the project with VS 2022?

@luisquintanilla
Copy link
Collaborator Author

luisquintanilla commented Aug 24, 2023

Once you've provisioned resources with azd up, you can set the MinimalApi as your startup project in VS and start debugging like any other .NET application from there.

@aaronpowell
Copy link
Member

Once you've provisioned resources with azd up, you can set the MinimalApi as your startup project in VS and start debugging like any other .NET application from there.

Will the .env from azd be included when you launch the debugger in VS, or do you need to manually bring the environment variables into the appsettings.json file?

As an aside, there's a blocker in VS Code support, #183, due to an azd bug. But I have started work on some small improvements to the VS Code experience in #184

@luisquintanilla
Copy link
Collaborator Author

Will the .env from azd be included when you launch the debugger in VS, or do you need to manually bring the environment variables into the appsettings.json file?

It won't. You'll have to set the environment variables manually.

@aaronpowell
Copy link
Member

That's what I thought. I might see about taking it up with the azd VS extension team to see if we can get some way to get that file (like in VS Code) to then load the env vars

@elbruno
Copy link
Collaborator

elbruno commented Sep 17, 2024

I'll be submitting a PR that works with managed identities. Once the services are deployed, 2 steps are required for local dev using VS2022 (the local credential in VS2022 is a fun experience). I'll write a step-by-step and also record a short video to support this.

Best

@elbruno elbruno added the documentation Improvements or additions to documentation label Sep 17, 2024
@elbruno elbruno self-assigned this Sep 17, 2024
@klinki
Copy link

klinki commented Dec 18, 2024

@elbruno any news on this? I'm also trying to get it working locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants