Posted on 15. April 2014

Fiddler2: The tool that gives you Superpowers - Part 2

This post is the second post in the series 'Fiddler – the tool that gives you superpowers!'

Invisibility

This time it's the superpower of Invisibility! Wow I hear you say!

Fiddler is a web debugger that sits between you and the server and so is in the unique position of being able to listen for requests for a specific file and rather than returning the version on the server return a version from your local disk instead. This is called and 'AutoResponder' and sounds like a super-hero it's self – or perhaps a transformer (robots in disguise).

If you are supporting a production system then the chances are that at some point your users have found an issue that you can't reproduce in Development/Test environments. Auto Responders can help by allowing us to update any web resource (html/JavaScript/Silverlight) locally and then test it against the production server without actually deploying it. The Auto Responder sees the request from the browser for the specific web resource and rather returning the currently deployed version, it gives the browser your local updated version so you can test it works before other users are affected.

Here are the steps to add an auto responder:

1) Install Fiddler (if you've not already!)

2) Switch to the 'Auto Responders' tab and check the two checkboxes 'Enable automatic responses' and 'Unmatched requests pass-through'

3) To ensure that the browser requests a version of the web resource rather than a cached version from the server you'll need to clear the browser cache using the convenient 'Clear Cache' button on the tool bar.

4) You can ensure that no versions get subsequently cached by selecting Rules-> Performance-> Disable Caching.

5) You can now use 'Add Rule' to add an auto responder rule. Enter a regular expression to match the web resource name

regex:(?insx).+/<Web Resource Name>([?a-z0-9-=&]+\.)*

then enter the file location of the corresponding webresource in your Visual Studio Developer Toolkit project.

You are now good to go so that when you refresh your browser the version of your web resource will be loaded into the browser directly from your Visual Studio project. No need to publish a file to the server and affect other users.

There is one caveat to this – If the script that you are debugging updates data then this approach is probably not a good idea until you are have fully tested the script in a non-production environment. Only once you have QAed and ready to deploy can be it be used against the production environment to check that the specific user's issue is fixed before you commit to deploying it to all users.

Read the next post on how to be faster than a speeding bullet!

@ScottDurow

 

Comments

trackback Develop 1 Limited Blog
9:33 PM on Tuesday, April 15, 2014

Fiddler2: The tool that gives you Superpowers - Part 2

Fiddler2: The tool that gives you Superpowers - Part 2

Scott Durow's Dynamics CRM Blog Scott Durow's Dynamics CRM Blog
9:34 PM on Tuesday, April 15, 2014

Fiddler2: The tool that gives you Superpowers – Part 3

This post is the third post in the series 'Fiddler – the tool that gives you superpowers!'

pingback crmbusiness.wordpress.com
2:37 PM on Friday, April 25, 2014

Pingback from crmbusiness.wordpress.com

Hosk’s Top CRM 2013 articles of the week 25th April 2014 | Hosk's Dynamic CRM Blog

Hosk's Dynamic CRM 2011 Blog Hosk's Dynamic CRM 2011 Blog
3:31 PM on Friday, April 25, 2014

Hosk’s Top CRM 2013 articles of the week 25th April 2014

First I like to start on a high note with a celebrity thumbs up for surviving another week everyone,

pingback crmbusiness.wordpress.com
11:14 AM on Friday, May 30, 2014

Pingback from crmbusiness.wordpress.com

Hosk’s Top CRM 2013 articles of the week 30th May 2014 | Hosk's Dynamic CRM Blog

Hosk's Dynamic CRM 2011 Blog Hosk's Dynamic CRM 2011 Blog
12:02 PM on Friday, May 30, 2014

Hosk’s Top CRM 2013 articles of the week 30th May 2014

I have been on holiday this week, so I didn’t have my usual collection of articles but I have cobbled

Hosk's Dynamic CRM 2011 Blog Hosk's Dynamic CRM 2011 Blog
9:50 PM on Thursday, June 05, 2014

Hosk’s Top CRM 2013 articles of the week 30th May 2014

I have been on holiday this week, so I didn’t have my usual collection of articles but I have cobbled

trackback Gold Coast
3:07 PM on Friday, June 27, 2014

Debugging CRM web resources without ever deploying them

UPDATE: The steps explained below don't work with CRM 2013. However, Scott has a blog post which shows

Scott Durow's Dynamics CRM Blog Scott Durow's Dynamics CRM Blog
4:00 PM on Wednesday, July 09, 2014

Monitor, Monitor, Monitor

I once heard someone say that "the great thing about Dynamics CRM is that it just looks after itself"

crmbusiness.wordpress.com crmbusiness.wordpress.com
3:07 PM on Friday, January 02, 2015

Pingback from crmbusiness.wordpress.com

Hosk’s Top CRM Articles of the Year 2014 | Hosk's Dynamic CRM Blog

Hosk's Dynamic CRM  Blog Hosk's Dynamic CRM Blog
3:17 PM on Friday, January 02, 2015

Hosk’s Top CRM Articles of the Year 2014

Waking up early, isn’t a problem I have two young children (1 and 3) who are particularly effective

blogs.msdn.microsoft.com blogs.msdn.microsoft.com
5:24 AM on Wednesday, March 02, 2016

Pingback from blogs.msdn.microsoft.com

Debugging CRM web resources without ever deploying them | Gold Coast

Comments are closed