Workaround for "Stop on Debugger()/DebugStr()" Xcode setting causing the webkit plugin to crash.

meow-7.2.2
Monroe Linden 2010-01-19 14:31:27 -08:00
parent b35a682ec7
commit c3b8a84d3c
1 changed files with 9 additions and 0 deletions

View File

@ -175,6 +175,15 @@ private:
}
std::string application_dir = std::string( cwd );
#if LL_DARWIN
// When running under the Xcode debugger, there's a setting called "Break on Debugger()/DebugStr()" which defaults to being turned on.
// This causes the environment variable USERBREAK to be set to 1, which causes these legacy calls to break into the debugger.
// This wouldn't cause any problems except for the fact that the current release version of the Flash plugin has a call to Debugger() in it
// which gets hit when the plugin is probed by webkit.
// Unsetting the environment variable here works around this issue.
unsetenv("USERBREAK");
#endif
#if LL_WINDOWS
//*NOTE:Mani - On windows, at least, the component path is the
// location of this dll's image file.