mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Add output window filtering options similar to what Visual Studio
offers. To use right click on output window, and select which messages should appear and which should be filtered out. By default all types of messages appear as they normally would before this change. These settings are persisted into workspace_user file This change helps keep the clutter out of the output window so that program output logs are easier to read, especially on application startup.
This commit is contained in:
parent
da23ba4aa7
commit
d9d954254f
7 changed files with 221 additions and 15 deletions
|
@ -94,6 +94,8 @@ DebugManager::DebugManager()
|
|||
mSymSrvOptions.mSymbolServers.Add("http://127.0.0.1/symbols");
|
||||
|
||||
SetSourceServerCacheDir();
|
||||
|
||||
mOutputFilterFlags = BfOutputFilterFlags_None;
|
||||
}
|
||||
|
||||
DebugManager::~DebugManager()
|
||||
|
@ -143,6 +145,16 @@ void DebugManager::SetSourceServerCacheDir()
|
|||
#endif
|
||||
}
|
||||
|
||||
void DebugManager::SetOutputFilterFlags(BfOutputFilterFlags outputFilterFlags)
|
||||
{
|
||||
mOutputFilterFlags = outputFilterFlags;
|
||||
}
|
||||
|
||||
BfOutputFilterFlags DebugManager::GetOutputFilterFlags()
|
||||
{
|
||||
return mOutputFilterFlags;
|
||||
}
|
||||
|
||||
//#define CAPTURE_ALLOC_BACKTRACE
|
||||
//#define CAPTURE_ALLOC_SOURCES
|
||||
|
||||
|
@ -1661,6 +1673,24 @@ BF_EXPORT const char* BF_CALLTYPE Debugger_GetEmitSource(char* inFilePath)
|
|||
return outString.c_str();
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE Debugger_SetOutputFilterFlags(int flags)
|
||||
{
|
||||
if (gDebugManager != NULL)
|
||||
{
|
||||
gDebugManager->SetOutputFilterFlags((BfOutputFilterFlags)flags);
|
||||
}
|
||||
}
|
||||
|
||||
BF_EXPORT int BF_CALLTYPE Debugger_GetOutputFilterFlags()
|
||||
{
|
||||
if (gDebugManager != NULL)
|
||||
{
|
||||
return (int)gDebugManager->GetOutputFilterFlags();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
BF_EXPORT NetResult* HTTP_GetFile(char* url, char* destPath)
|
||||
{
|
||||
AutoCrit autoCrit(gDebugManager->mNetManager->mThreadPool.mCritSect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue