diff --git a/reactos/subsys/system/explorer/explorer.cpp b/reactos/subsys/system/explorer/explorer.cpp index 6e17b2df1eb..da8d27080ec 100644 --- a/reactos/subsys/system/explorer/explorer.cpp +++ b/reactos/subsys/system/explorer/explorer.cpp @@ -268,6 +268,15 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL if (_tcsstr(lpCmdLine,TEXT("-debug"))) use_gdb_stub = true; + if (_tcsstr(lpCmdLine,TEXT("-break"))) { + LOG(TEXT("debugger breakpoint")); +#ifdef _MSC_VER + __asm int 3 +#else + asm("int3"); +#endif + } + // activate GDB remote debugging stub if no other debugger is running if (use_gdb_stub) { LOG(TEXT("waiting for debugger connection...\n"));