USD – Optionally Show Debugger

The debugger in USD is a very useful tool but routinely you will only want developers to have access to this feature or you may wish an administrator to give temporary access to a user. Here is how to configure the debugger to be optionally visible depending on user options.

Steps

  1. Create a user setting.
  2. Add a condition to the display of the debugger.
  3. Test the application.

Step One – Create a user setting.
In USD settings select the user settings option.

USD Screen

You will then create a new setting called something like “ShowDebugger”, each user who needs to see the debugger will need this option creating. You can see here that I have created a option for me. Notice that I haven’t needed to give a value, simply having or not having the option will be sufficient.

User Setting - Debugger

Step Two – Add a condition to the display of the debugger.
In my example, I have already got a toolbar button called “Debug” that is associated with the “Show Debugger” action.

Now I need to add the condition under which the option will be enabled and visible.

Add “[[$Settings.ShowDebugger]g]” to the conditions.

Debugger - Optional

Step Three – Test the application.

With the user option present, when I load USD I have an about toolbar that looks like this ….

Debugger - Visible

If / when I remove the user options my toolbar changes to this …

Debugger - NOT Visible

A simple modification but one that you will hopefully find useful.

4 thoughts on “USD – Optionally Show Debugger

  1. Pingback: Learning USD | My experiences with Microsoft Dynamics CRM

  2. Pingback: USD – Using the Debugger | Microsoft Dynamics CRM and Unified Service Desk

  3. Pingback: Learning Unified Service Desk | Microsoft Dynamics CRM and Unified Service Desk

  4. Pingback: USD – The Book | Microsoft Dynamics CRM and Unified Service Desk

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s