Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to debug in VS instead of JIT Debugger?
    text
    copied!<p><strong>UPDATE:</strong> navigating to the process via menu:<code>DEBUG / Attach Process / iexplore.exe</code> shows "Automatic: Silverlight code". i.e. VS 2010 already attached to the process. Why doesn't it go to debug view?</p> <hr/> <p>I have a frustrating debug behaviour going on on my laptop which I'd like to fix. I was following along with the demo called <a href="http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-46-Whats-Wrong-with-my-WCF-Service" rel="nofollow">Silverlight TV 46: What's Wrong with my WCF Service</a>?</p> <p>On my computer, I noticed that putting throw new <code>ArithmeticException()</code> in the RIA service causes the just-in-time debugger to get involved (a bad thing -- I want VS). I can put a break point on the the <code>throw new ArithmeticExpression()</code> line, and VS stops as it normally does. Press F10, and I <em>still</em> get the just-in-time debugger kicking in. </p> <p>On Yvor's computer (the presenter in the Ch 8 link above), the visual studio debugger kicks in instead of the just-in-time one. What am I doing wrong? Could having Redgate Reflector installed previously have caused this (it is gone now).</p> <blockquote> <p>ERROR: Visual Studio Just-In-Time Debugger Code: 4004 Category: ManagedRuntimeError Message: System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.</p> <p>Check ...</p> <p>Possible Debuggers: </p> </blockquote> <pre><code>New instance of MS VS 2010, New instance of VS 2008. </code></pre> <ul> <li>[checked] Set currently selected debugger as the default. </li> <li><p>[unchecked] Manually choose the debugging engines</p></li> <li><p>Action: Hit Yes. </p></li> </ul> <p><strong>2nd ERROR:</strong></p> <blockquote> <p>Unable to attach to the crashing process. A debugger is already attached.</p> </blockquote> <p>I've spent several hours looking for a way to solve this.</p> <p>Browser is IE9 / Silverlight 4.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload