{"id":298045,"date":"2020-02-01T03:00:10","date_gmt":"2020-02-01T03:00:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298045"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298045","title":{"rendered":"\u0412\u044b\u0432\u043e\u0434 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u0445 \u043f\u0435\u0440\u0435\u0434 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u044b\u043c \u0432\u044b\u0445\u043e\u0434\u043e\u043c"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/486510\/\">\n<h2 id=\"zachem-i-dlya-chego\">\u0417\u0430\u0447\u0435\u043c \u0438 \u0434\u043b\u044f \u0447\u0435\u0433\u043e<\/h2>\n<p>  <\/p>\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0441\u0451 \u0431\u044b\u0432\u0430\u0435\u0442 \u0433\u043b\u0430\u0434\u043a\u043e. \u0411\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u0442\u0435\u0441\u0442\u0430\u0445, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u043b\u0438\u0437\u0430. \u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u043b\u043e\u0432\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. <\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"perehvat-isklyucheniy\">\u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0435\u0440\u0435\u0434 \u043f\u0430\u0434\u0435\u043d\u0438\u0435\u043c \u043c\u043e\u0433\u043b\u0430 \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043d\u0430\u043c (\u0432\u043d\u0435 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430) \u0432 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f <a href=\"http:\/\/cppstudio.com\/post\/1204\/\" rel=\"nofollow\">\u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432<\/a>. <\/p>\n<p>  <\/p>\n<p><strong>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432:<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">    signal(SIGABRT, abort_handler); \/\/ \u0410\u0432\u0430\u0440\u0438\u0439\u043d\u043e\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441 nullptr \u0438 \u043f\u0440\u043e\u0447\u0438\u043c      signal(SIGFPE, floating_point_handler); \/\/ \u041e\u0448\u0438\u0431\u043a\u0438 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0438 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439      signal(SIGILL, illegal_instruction_handler); \/\/ \u041e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 intrinsics (SSE\/AVX\/Other) <\/code><\/pre>\n<p>  <\/p>\n<p><strong>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\"> inline void abort_handler(int signal) {     handler_base(&quot;Application is aborting&quot;); }  inline void floating_point_handler(int signal) {     handler_base(&quot;Floating point error&quot;); }  inline void illegal_instruction_handler(int signal) {     if (!CPU::Info.hasFeature(CPUFeature::SSE42))         handler_base(&quot;SSE4.2 and AVX instructions isn't legal on your CPU&quot;);     else if (!CPU::Info.hasFeature(CPUFeature::AVX))          handler_base(&quot;AVX instructions isn't legal on your CPU&quot;);     else         handler_base(&quot;Illegal instruction&quot;); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 (_set_invalid_parameter_handler), \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 (_set_new_handler) \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0438\u043c.<\/p>\n<p>  <\/p>\n<h2 id=\"problemnoe-mesto-poluchenie-callstacka\">\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 callstack&#8217;a<\/h2>\n<p>  <\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043d\u0443\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0433\u0434\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, CallStack. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c: <a href=\"https:\/\/github.com\/JochenKalmbach\/StackWalker\" rel=\"nofollow\">StackWalker<\/a><\/p>\n<p>  <\/p>\n<h2 id=\"problemnoe-mesto-polucheniya-dump-fayla\">\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f dump-\u0444\u0430\u0439\u043b\u0430<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435, \u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c Dump \u0444\u0430\u0439\u043b. <\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">using MINIDUMPWRITEDUMP = BOOL(WINAPI*)(HANDLE hProcess, DWORD dwPid, HANDLE hFile, MINIDUMP_TYPE DumpType,     CONST PMINIDUMP_EXCEPTION_INFORMATION ExceptionParam,     CONST PMINIDUMP_USER_STREAM_INFORMATION UserStreamParam,     CONST PMINIDUMP_CALLBACK_INFORMATION CallbackParam     );  LONG WriteMinidump(struct _EXCEPTION_POINTERS* pExceptionInfo) {     long retval = EXCEPTION_CONTINUE_SEARCH;      \/\/ firstly see if dbghelp.dll is around and has the function we need     \/\/ look next to the EXE first, as the one in System32 might be old     \/\/ (e.g. Windows 2000)     HMODULE hDll = nullptr;     string_path szDbgHelpPath;      if (GetModuleFileName(nullptr, szDbgHelpPath, _MAX_PATH))     {         char* pSlash = strchr(szDbgHelpPath, '\\\\');         if (pSlash)         {             const char dbgHelpStr[] = &quot;DBGHELP.DLL&quot;;             xr_strcpy(pSlash + 1, sizeof(dbgHelpStr), dbgHelpStr);             hDll = LoadLibraryA(szDbgHelpPath);         }     }      if (!hDll)     {         \/\/ \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c dbgHelp          hDll = LoadLibraryA(&quot;DBGHELP.DLL&quot;);     }      LPCSTR szResult = nullptr;      if (hDll)     {         MINIDUMPWRITEDUMP pDump = (MINIDUMPWRITEDUMP)::GetProcAddress(hDll, &quot;MiniDumpWriteDump&quot;);         if (pDump)         {             string512 ErrorString = { NULL };             DWORD ErrorSysCode = NULL;             DWORD ErrorStringSize = NULL;              string_path szDumpPath = { 0 };             string_path szFilename = { 0 };             string_path szScratch = { 0 };             string64 t_stemp = { 0 };              timestamp(t_stemp);             xr_strcat(szDumpPath, DumpFilePath);              \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 : App Name, User Name, Time, Ext             xr_strcat(szFilename, Core.ApplicationName);             xr_strcat(szFilename, &quot;_&quot;);             xr_strcat(szFilename, Core.UserName);             xr_strcat(szFilename, &quot;_&quot;);             xr_strcat(szFilename, t_stemp);             xr_strcat(szFilename, &quot;.mdmp&quot;);              xr_strcat(szDumpPath, szFilename);              \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b             HANDLE hFile = CreateFileA(szDumpPath, GENERIC_WRITE, FILE_SHARE_WRITE, nullptr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr);             if (INVALID_HANDLE_VALUE == hFile)             {                 \/\/ \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435                 ZeroMemory(szDumpPath, sizeof(szDumpPath));                 xr_strcat(szDumpPath, szFilename);                 hFile = CreateFileA(szDumpPath, GENERIC_WRITE, FILE_SHARE_WRITE, nullptr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr);             }             if (hFile != INVALID_HANDLE_VALUE)             {                 _MINIDUMP_EXCEPTION_INFORMATION ExInfo;                  ExInfo.ThreadId = GetCurrentThreadId();                 ExInfo.ExceptionPointers = pExceptionInfo;                 ExInfo.ClientPointers = NULL;                  \/\/ \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c Dump                  MINIDUMP_TYPE dump_flags = MINIDUMP_TYPE(MiniDumpNormal | MiniDumpFilterMemory | MiniDumpScanMemory);                  \/\/ \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438                  char* logFileContent = nullptr;                 DWORD logFileContentSize = 0;  \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/                 \/\/ \u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432\u0430\u0448 \u043a\u043e\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 (logFileContent) \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/          MINIDUMP_USER_STREAM_INFORMATION UserStreamsInfo = { 0 };                 MINIDUMP_USER_STREAM LogFileUserStream = { 0 };                  if (logFileContent)                 {                     UserStreamsInfo.UserStreamCount = 1;                     LogFileUserStream.Buffer = logFileContent; \/\/ \u041f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0432\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435                     LogFileUserStream.BufferSize = logFileContentSize; \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f                     LogFileUserStream.Type = MINIDUMP_STREAM_TYPE::CommentStreamA; \/\/ \u0422\u0438\u043f                     UserStreamsInfo.UserStreamArray = &amp;LogFileUserStream;                 }                  BOOL bOK = pDump(GetCurrentProcess(), GetCurrentProcessId(), hFile, dump_flags, &amp;ExInfo, &amp;UserStreamsInfo, nullptr);                 if (bOK)                 {                     xr_sprintf(szScratch, &quot;Saved dump file to '%s'&quot;, szDumpPath);                     szResult = szScratch;                     retval = EXCEPTION_EXECUTE_HANDLER;                 }                 else                 {                     ErrorSysCode = GetLastError();                     ErrorStringSize = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, ErrorSysCode, 0, ErrorString, sizeof(ErrorString) - 1, nullptr);                      if (!!ErrorString &amp;&amp; ErrorSysCode &amp;&amp; ErrorStringSize)                         xr_sprintf(szScratch, &quot;Failed to save dump file to '%s' (error %d '%s')&quot;, szDumpPath, ErrorSysCode, ErrorString);                     else                         xr_sprintf(szScratch, &quot;Failed to save dump file to '%s' (No system error)&quot;, szDumpPath);                     szResult = szScratch;                  }                 CloseHandle(hFile);             }             else             {                 ErrorSysCode = GetLastError();                 ErrorStringSize = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, ErrorSysCode, 0, ErrorString, sizeof(ErrorString) - 1, nullptr);                  if (!!ErrorString &amp;&amp; ErrorSysCode &amp;&amp; ErrorStringSize)                     xr_sprintf(szScratch, &quot;Failed to create dump file '%s' (error %d '%s')&quot;, szDumpPath, ErrorSysCode, ErrorString);                 else                     xr_sprintf(szScratch, &quot;Failed to create dump file '%s' (No system error)&quot;, szDumpPath);                 szResult = szScratch;             }         }         else             szResult = &quot;DBGHELP.DLL too old&quot;;     }     else         szResult = &quot;DBGHELP.DLL not found&quot;;      return retval; }<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"soobschim-polzovatelyu-o-probleme\">\u0421\u043e\u043e\u0431\u0449\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u043a\u0430\u043a \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439, \u0442\u0430\u043a \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 (\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432, \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b), \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/df5\/e79\/4dd\/df5e794ddfc3c8c98733aa04cbbf7f53.jpg\" alt=\"image\"><br \/>  \u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043e\u043d\u0430 \u043d\u0430 C# + WPF, \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 <a href=\"https:\/\/github.com\/xrOxygen\/xray-oxygen\/tree\/master\/code\/engine.vc2008\/CrashStack\" rel=\"nofollow\">\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d<\/a><\/p>\n<p>  <\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u0435\u043d: <\/p>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (\u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430)<\/li>\n<li>\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 (\u0441\u0442\u0435\u043a \u0443\u043b\u0435\u0442\u0430\u0435\u0442 \u0432 \u0431\u0443\u0444\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u0438\u0441\u043a\u043e\u0440\u0434\u0430 \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u0442\u043e\u043f\u0438\u043a)<\/li>\n<li>\u041f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/li>\n<\/ul>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/486510\/\"> https:\/\/habr.com\/ru\/post\/486510\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/486510\/\">\n<h2 id=\"zachem-i-dlya-chego\">\u0417\u0430\u0447\u0435\u043c \u0438 \u0434\u043b\u044f \u0447\u0435\u0433\u043e<\/h2>\n<p>  <\/p>\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0441\u0451 \u0431\u044b\u0432\u0430\u0435\u0442 \u0433\u043b\u0430\u0434\u043a\u043e. \u0411\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u0442\u0435\u0441\u0442\u0430\u0445, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u043b\u0438\u0437\u0430. \u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u043b\u043e\u0432\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298045","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298045"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298045\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}