How to enable timely debugging using VC # Express

I need to enable just-in-time debugging on a computer that has only VC # Express Edition (cannot install the full Visual Studio there). Consider a C # Console application with the following code:

System.Diagnostics.Debugger.Break();

When I launch such an application (without an attached C # debugger), I get the following message: ConsoleApplication1 stops working . The only option is to close the program . Trying to solve the problem, I installed debugging tools for Windows on this computer. Now the Application1 console has stopped working; the message has two options: Debugging and Close the program . After clicking Debug, I get the following message:

Debugging Visual Studio Just-In-Time. Microsoft.NET Framework exception thrown in ConsoleApplication1.exe [2156]. Debugging "Just-In-Time" during debugging of this exception ended with the following error: none of the installed debuggers turned on Just-In-Time debugging. In Visual Studio, "Just-In-Time" debugging can be turned on from "Tools / Options / Debugging" or "Time Time." For more information, check out the documentation index for "Just-in-Time Debugging Errors."

The debugger is still unavailable. HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ AeDebug has the following information:

Debugger  "C:\Windows\system32\vsjitdebugger.exe" -p %ld -e %ld

vsjitdebugger.exe system32. , " "? .NET, #, #, .

+4

Source: https://habr.com/ru/post/1523783/


All Articles