Reattaching Fiddler automatically is perilous for a bunch of reasons, but yes, it's technically possible to observe changes in the proxy setting for the current user and reattach if they change.
In CustomRules, add the following code:
FiddlerApplication.oProxy.add_DetachedUnexpectedly(DoReattach);
Regards,
Eric Lawrence
Telerik
In CustomRules, add the following code:
static function DoReattach(o: Object, ea: EventArgs)
{
ScheduledTasks.ScheduleWork("reattach", 1000, innerReattach);
}
static function innerReattach()
{
FiddlerApplication.UI.actAttachProxy();
}
static function OnRetire()
{
FiddlerApplication.oProxy.remove_DetachedUnexpectedly(DoReattach);
}
FiddlerApplication.oProxy.add_DetachedUnexpectedly(DoReattach);
Regards,
Eric Lawrence
Telerik
See What's Next in App Development. Register for TelerikNEXT.