enable debug print in aspnetcore.dll (#663)

This commit is contained in:
pan-wang 2018-03-14 14:29:25 -07:00 committed by GitHub
parent 174a52e5cd
commit 9d064b24c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -143,6 +143,18 @@ HRESULT
fDisableANCM = (dwData != 0);
}
cbData = sizeof(dwData);
if ((RegQueryValueEx(hKey,
L"DebugFlags",
NULL,
&dwType,
(LPBYTE)&dwData,
&cbData) == NO_ERROR) &&
(dwType == REG_DWORD))
{
g_dwAspNetCoreDebugFlags = dwData;
}
RegCloseKey(hKey);
}

View File

@ -3,6 +3,7 @@
#include "stdafx.h"
#include "aspnetcoreconfig.h"
#include "debugutil.h"
ASPNETCORE_CONFIG::~ASPNETCORE_CONFIG()
{
@ -135,6 +136,8 @@ ASPNETCORE_CONFIG::GetConfig(
}
else
{
DebugPrintf(ASPNETCORE_DEBUG_FLAG_INFO,
"ASPNETCORE_CONFIG::GetConfig, set config to ModuleContext");
// set appliction info here instead of inside Populate()
// as the destructor will delete the backend process
hr = pAspNetCoreConfig->QueryApplicationPath()->Copy(pHttpApplication->GetApplicationId());