-
Notifications
You must be signed in to change notification settings - Fork 185
Debugging
Fabio Cavalcante edited this page Mar 9, 2021
·
1 revision
Release candidate instructions. Requires RC packages
NOTE: To debug your Worker, you must be using the Azure Functions Core Tools version 3.xxx or higher
In your worker directory (or your worker's build output directory), run:
func host start --dotnet-isolated-debug
Core Tools will run targeting your worker and the process will stop with the following message:
Azure Functions .NET Worker (PID: <process id>) initialized in debug mode. Waiting for debugger to attach...
Where <process id>
is the ID for your worker process.
At this point, your worker process wil be paused, waiting for the debugger to be attached. You can now use Visual Studio to manually attach to the process (to learn more, see how to attach to a running process)
Once the debugger is attached, the process execution will resume and you will be able to debug.