The Kinetic Jump site navigation header requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

Welcome Guest Search | Active Topics | Log In | Register

Debugging custom action Options
dynamicode
#1 Posted : Monday, January 18, 2010 8:39:18 AM
Rank: Newbie
Groups: Member

Joined: 6/18/2009
Posts: 1
Is there a way to debug in Visual studio my own custom actions?
adamh
#2 Posted : Monday, January 18, 2010 11:07:24 AM
Rank: Administration
Groups: Member, Administration

Joined: 7/12/2007
Posts: 11
Location: Michigan
Yes, you can debug custom actions.

Inside your Execute() method (or whichever method you want to debug), add this line of code:
Code:
System.Diagnostics.Debugger.Break();
Then, build your custom action assembly in debug mode (if Make Update is open, you will need to close it first) and then rebuild your update in Make Update.

When you install the update on your debugging machine, you should see a prompt that will allow you to select a debugger for your action. You can then step through your action's code. Note that Edit and Continue will not work in this scenario.

Once you've finished debugging, be sure to remove the call to Debugger.Break() and rebuild your custom action assembly.
Adam Hill
Kinetic Jump Software
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.