Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using JIT debugger outside Visual Studio

Posted on 2013-11-29
1
Medium Priority
?
505 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 64

Accepted Solution

by:
Fernando Soto earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

886 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