Howiecamp
Howiecamp

Reputation: 3111

Unable to debug Azure webjobs - the webjob processes do not show in the "Attach to process" dialog

Visual Studio 2013 update 3. I have deployed several Webjobs to Azure, both manually (upload a bundle via the portal) and also published directly from Visual Studio. The webjobs I am testing with are set to run "Continuous" and have code that runs inside a while(true) {} loop; so the process never ends. The webjobs are functioning properly and I see their runtime output in the Webjobs dashboard log output screen.

I've enabled remote debugging on the website. When I select Debug, Attach to process, the webjob process names never show on the list. All I see are the remote debugger processes and w3wp.exe.

Attach to process dialog box

Ideas?

Upvotes: 3

Views: 2270

Answers (1)

Petr Podhorsky
Petr Podhorsky

Reputation: 701

Instead of attaching to SITENAME.azurewebsites.net, try to attach to SITENAME.scm.azurewebsites.net. Use same credentials as for the regular debugging connection. WebJobs run under a different context (Kudu), hence the different endpoint.

Upvotes: 9

Related Questions