HomecareHomebase / azure-bake

An Open Source Deployment Management Framework for DevOps and Developers
MIT License
9 stars 14 forks source link

Issue Debugging Web App Container Ingredient #62

Open bdschaap opened 5 years ago

bdschaap commented 5 years ago

I’m having some difficulty getting VS Code to stop on a breakpoint in the Execute method of ingredient-webapp-container. I have no difficulty with breakpoints in ingredient-app-insights or ingredient-event-hub-namespace. I'm also able to debug an app insights util function called from a web app ingredient without issue. I do notice that the breakpoint's color changes from red to gray in the web app container ingredient and hovering over it shows "unverified breakpoint" while running Bake. The breakpoint remains red in the other ingredients mentioned.

bdschaap commented 5 years ago

I saw this in the VS Code docs. I'm not editing the web app container ingredient's source.... just setting a breakpoint to help figure out why a variable is getting set to an empty value.

"When a debugging session starts, breakpoints that cannot be registered with the debugger change to a gray hollow circle. The same might happen if the source is edited while a debug session without live-edit support is running." https://code.visualstudio.com/docs/editor/debugging#_breakpoints

whilke commented 5 years ago

Sounds like it's loading different source for that ingredient. Did you verify it's not installed globably, linked in from somewhere, etc?

bdschaap commented 5 years ago

Not super familiar with links in npm but I ran this and the web app container package isn't listed. npm ls -g --depth=0 --link=true

Also, just FYI that I ended up figuring out why the variable was getting set to an empty value so it's not super important to figure out the debugging issue.