Debugging Windows Service without deploying it(blog.decarufel.net)

submitted by decarufedecarufe(959) 3 years, 3 months ago

Have you ever tried to build a Windows Service? Did you get it right the first time?

1 comment |category: |Views: 4

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by JonnyRocksJonnyRocks(0) 3 years, 3 months ago 0

There is no reason to follow this. You don't have to create packages, you can install a windows service straight from visual studio. You want to make sure your code is as close to production as oyu can be. In your start method just add the line

#if DEBUG
System.Diagnostics.Debugger.Launch();
#endif

That way when you debug it will launch the debugger when compliling in release it skips the line.

Reply

information Login or create an account to comment on this story