Solved

Using JIT debugger outside Visual Studio

Posted on 2013-11-29
1
472 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb.net 2 37
Trying to use colormap to replace color in png, with a gradient to transparent 7 31
Help with solving error related to resources file 4 35
vb.net checkbox 7 41
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 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

18 Experts available now in Live!

Get 1:1 Help Now