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
|
@ -35,6 +35,18 @@ enum BfStepFilterKind
|
|||
BfStepFilterKind_NotFiltered = 2
|
||||
};
|
||||
|
||||
enum BfOutputFilterFlags : uint16
|
||||
{
|
||||
BfOutputFilterFlags_None = 0x0,
|
||||
BfOutputFilterFlags_ModuleLoadMessages = 0x1,
|
||||
BfOutputFilterFlags_ModuleUnloadMessages = 0x2,
|
||||
BfOutputFilterFlags_ProcessExitMessages = 0x4,
|
||||
BfOutputFilterFlags_ThreadCreateMessages = 0x8,
|
||||
BfOutputFilterFlags_ThreadExitMessages = 0x10,
|
||||
BfOutputFilterFlags_SymbolLoadMessages = 0x20,
|
||||
BfOutputFilterFlags_ProgramOutput = 0x40 // Can't trap these easily, they're in BeefSysLib
|
||||
};
|
||||
|
||||
class StepFilter
|
||||
{
|
||||
public:
|
||||
|
@ -81,6 +93,8 @@ public:
|
|||
NetManager* mNetManager;
|
||||
DbgSymSrvOptions mSymSrvOptions;
|
||||
|
||||
BfOutputFilterFlags mOutputFilterFlags;
|
||||
|
||||
public:
|
||||
DebugManager();
|
||||
~DebugManager();
|
||||
|
@ -88,6 +102,9 @@ public:
|
|||
void OutputMessage(const StringImpl& msg);
|
||||
void OutputRawMessage(const StringImpl& msg);
|
||||
void SetSourceServerCacheDir();
|
||||
|
||||
void SetOutputFilterFlags(BfOutputFilterFlags outputFilterFlags);
|
||||
BfOutputFilterFlags GetOutputFilterFlags();
|
||||
};
|
||||
|
||||
extern DebugManager* gDebugManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue