mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Wait for the debugger as early in process initialization as possible.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1517 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -16,8 +16,10 @@
|
|||||||
#include "libcef/common/main_delegate.h"
|
#include "libcef/common/main_delegate.h"
|
||||||
#include "libcef/renderer/content_renderer_client.h"
|
#include "libcef/renderer/content_renderer_client.h"
|
||||||
|
|
||||||
|
#include "base/base_switches.h"
|
||||||
#include "base/bind.h"
|
#include "base/bind.h"
|
||||||
#include "base/command_line.h"
|
#include "base/command_line.h"
|
||||||
|
#include "base/debug/debugger.h"
|
||||||
#include "base/file_util.h"
|
#include "base/file_util.h"
|
||||||
#include "base/synchronization/waitable_event.h"
|
#include "base/synchronization/waitable_event.h"
|
||||||
#include "chrome/browser/printing/print_job_manager.h"
|
#include "chrome/browser/printing/print_job_manager.h"
|
||||||
@@ -66,6 +68,10 @@ int CefExecuteProcess(const CefMainArgs& args,
|
|||||||
command_line.InitFromArgv(args.argc, args.argv);
|
command_line.InitFromArgv(args.argc, args.argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Wait for the debugger as early in process initialization as possible.
|
||||||
|
if (command_line.HasSwitch(switches::kWaitForDebugger))
|
||||||
|
base::debug::WaitForDebugger(60, true);
|
||||||
|
|
||||||
// If no process type is specified then it represents the browser process and
|
// If no process type is specified then it represents the browser process and
|
||||||
// we do nothing.
|
// we do nothing.
|
||||||
std::string process_type =
|
std::string process_type =
|
||||||
|
Reference in New Issue
Block a user