Re: Jit-Debugging (again)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Oleg Starodumov" <com-dot-debuginfo-at-oleg> schrieb

> > I'm using VB 2003 (VS.Net 2003 IDE) and a WindowsForms project. > > > > How can I get *completely* rid of the "Jit-Debugging" dialog > > box? The one containing the 3 buttons "Details", "continue", > > "quit" (or "close"; I don't know, I have the German version). > > > > I do *not* want to see the dialog when debugging in the IDE. > > Instead, I'd like the IDE to handle the exception and stop at > > the line throwing the error. > > - In the options, Jit-Debugging is enabled for all three items > > (CLR, native, script). > > - In machine.config, JitDebugging is enabled.

Try the same setting, but in the application's .config file.
<system.windows.forms jitDebugging="true" />

It has no config file. It shouldn't care under the debugger.

Also, do you start the application under debugger or attach to a running
one?
(Starting under debugger should usually get rid of that dialog)

Yes, I start from the IDE (*with* debugging, not *without* debugging+attach to process). The usual way. The debugger should stop at the line throwing the exception. It doesn't.


Easy to reproduce: 1. Add a Timer (System.Windows.Forms.Timer) to a new WindowsApplication. 2. Set the timer's Enabled property = True.
3. In the timer's tick event, write:
Throw New Exception
4. Start. You'll see the problem.



Armin

.



Relevant Pages

  • VS 2008: Exception handling unter Win7/64
    ... Seit ich vor kurzem von XP/32 auf Win7/64 umgestiegen bin, ... tritt eine Exception in Sub Main auf, fängt die IDE ihn wie gewohnt ab, ... Die Exception wird also ... "Der Debugger kann die aktuelle Ausnahme nur verarbeiten, ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: How to find "Unknown Module"
    ... CLR when the debugger doesn't jump in. ... Maybe it's possible to add the "Null Reference Exception" in the Exceptions ... let's see what v2 has to offer and thanks again for replying. ... I believe there is a bug in the .net ide, ...
    (microsoft.public.dotnet.general)
  • Debugging under Win7/64 (VB 2008)
    ... If I start from within the IDE and an exception occurs, the debugger does not break. ... Shared Sub main ...
    (microsoft.public.dotnet.languages.vb)
  • Exception handling again
    ... when does the IDE catch an exception? ... and cause a TargetInvocationException. ... caught by the debugger, ... the exception is displayed in the output window. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: 3rd attempt: Exception in Timer.Tick/JIT debugging
    ... Set the timer's Enabled property = True. ... In the timer's tick event, ... How can I have the IDE handle the exception? ...
    (microsoft.public.dotnet.framework.windowsforms)