0

While developing my first durable function using PowerShell in VSCode, I am experiencing a troubled debugging experience. Often times the debugger is not attached correctly to my orchestration function so my breakpoints do not hit. Other times they do work correctly.

I realize that POSH + Durable functions will do stuff like creating separate runspaces or something and a remote debugging bridge that is hidden from your experience. What are your experiences with POSH + Durable Functions in VSCode? Does this actually work?

Cheers, Wouter

1 Answer 1

0

I have created Powershell Durable Azure functions in VScode to check if debugging works:

  • Created Durable function and could execute successfully:

enter image description here

To debug your function, write wait-debugger where you want to start debugging.

  • Go to Run and Debug in the left pane of vscode, Enable Run and Debug:

enter image description here

Choose Add Configuration from the drop down and select Attach to powershell functions.

enter image description here

enter image description here

When clicking on the function URL, it is hitting the debugger point and waiting for further action:

enter image description here

enter image description here

References:

Debug PowerShell Azure Functions locally | Microsoft Learn

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.