1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 00:20:25 +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:
Martin Cietwierkowski 2023-08-23 20:18:45 -04:00
parent da23ba4aa7
commit d9d954254f
7 changed files with 221 additions and 15 deletions

View file

@ -104,6 +104,19 @@ namespace IDE.Debugger
AllowStringView = 0x800
}
//[Flags]
public enum OutputFilterFlags
{
None = 0x0,
ModuleLoadMessages = 0x1,
ModuleUnloadMessages = 0x2,
ProcessExitMessages = 0x4,
ThreadCreateMessages = 0x8,
ThreadExitMessages = 0x10,
SymbolLoadMessages = 0x20,
ProgramOutput = 0x30
}
[Reflect]
public enum SymSrvFlags
{
@ -386,6 +399,12 @@ namespace IDE.Debugger
[CallingConvention(.Stdcall), CLink]
static extern char8* Debugger_GetEmitSource(char8* fileName);
[CallingConvention(.Stdcall), CLink]
static extern void Debugger_SetOutputFilterFlags(int32 flags);
[CallingConvention(.Stdcall), CLink]
static extern int32 Debugger_GetOutputFilterFlags();
public String mRunningPath ~ delete _;
public bool mIsRunning;
public bool mIsRunningCompiled;
@ -1285,5 +1304,15 @@ namespace IDE.Debugger
outString.Append(stackId);
return true;
}
public void SetOutputFilterFlags(OutputFilterFlags outputFilterFlags)
{
Debugger_SetOutputFilterFlags((int32)outputFilterFlags);
}
public OutputFilterFlags GetOutputFilterFlags()
{
return (OutputFilterFlags)Debugger_GetOutputFilterFlags();
}
}
}