Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't debug Windows Service -"attach to process"

Microsoft instructions state the following

In Visual Studio, choose Attach to Process from the Debug menu.

The Processes dialog box appears.

Click Show system processes.

In the Available Processes section, click the process for your service, and then click Attach.

However, I don't see the "Show system processes." option. I've tried checking off the other options but my service doesn't show up in the list.

enter image description here

Yes, I've installed and started the services and can see it in the in service manager.

I'm also aware that It's not possible to debug onstart. However, I have a continuous loop running.

like image 390
boruchsiper Avatar asked Oct 18 '12 17:10

boruchsiper


1 Answers

You must do the following:

  1. Open your solution in Visual Studio Administrator mode.
  2. Make sure your service is running.
  3. Open the "Attach to process window"
  4. Make sure both checkboxes are checked (all users, all sessions).
  5. Find the name of your executable in the list.

If the above doesn't work, you will need to provide some additional details about your setup. :-)

like image 200
theMayer Avatar answered Oct 08 '22 04:10

theMayer