C# Debugging Tip of the day – Force the debugger to be launched at a specific point in your code


I'm still having some issue in SharePoint in my event receiver (or custom Timer Job) for the debugger to break on my breakpoints. Fortunately and regardless of the issue, you can force the debugger to be launched (and attached) using System.Diagnostics.Debugger.Break();

Pretty handy isn't it ?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s