Solved

Using JIT debugger outside Visual Studio

Posted on 2013-11-29
1
469 Views
Last Modified: 2013-12-07
When testing my VB.NET applications outside Visual Studio they do abend from time to time. Then I always get this dialog box telling me that I should activate JIT debugging because that would give me so much more info about the error. The text about the JIT debugger is as follows:

---------------------------------------------------------------------------------------------
See the end of this message for details on invoking
Just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
      (Details about the error)

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
Application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging enabled.
---------------------------------------------------------------------------------------------

But how is this done? I know it is activated while debugging inside Visual Studio, but how to do it when I run the build exe file independently?
- I don’t find any machine.config file on the C drive.
- What is the jitDebugging value?
- Where do I find the system.windows.forms section?
- How do I compile my application with debugging enabled?

I have tried to find some info about this, but it is difficult to search and get a good match.

I use Win7 x32 and VS 2008
Please ask for more info if needed.

Can someone explain this to me?
0
Comment
Question by:daghoff
1 Comment
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 39685919
Hi daghoff;

To enable the JIT debugger please follow the steps in this web page, How to: Enable/Disable Just-In-Time Debugging , These steps are done from within Visual Studio.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now