Attaching a debugger to the silverlight client of a deployed LightSwitch app

Introduction

I recently encountered a problem which only pops up in the deployed application (in production so to speak) and which is not reproducable when running the LightSwitch application in debug. Furthermore, the problem happened client side (in the silverlight code). As a result, activating tracing server side on the IIS server didn’t have any sense.

I tried without any result, to attach the debugger to the browser connected to the LightSwitch application . I always got “The breakpoint will not currently be hit”: