How to disable auto break execution when using vsjitdebugger.exe

Trent Cooper 20 Reputation points

When using Visual Studio Just In Time Debugger (vsjitdebugger.exe) the debugger breaks execution of the attached program automatically on startup. How can I disable this?

The debugger is paused in exe_winmain.cpp:

extern "C" DWORD WinMainCRTStartup(LPVOID)
{ // <-- debugger paused here
    return __scrt_common_main();`

Note, I followed the following guide to automatically start my program with debugger attached.

I am in need of this to automate finding a bug at startup that only occurs very infrequently.
I have a script to start up the application with debugger attached. If bug occurs then process execution will be paused by the debugger breakpoint. If it does not occur the application will exit and the scripts will launch the process again.
However, vsjitdebugger.exe automatically pausing program execution is stopping me from automating the process.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
909 questions
{count} votes

Accepted answer
  1. RLWA32 38,856 Reputation points

    I don't know if vsjitdebugger.exe has an option to disable the initial breakpoint but you can accomplish this objective if you use windbg as the IFEO debugger and pass the -g parameter.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful