Skip to content

Commit ebd422d

Browse files
committed
fix(Launcher): 在调试模式下启用控制台日志输出
添加DEBUG条件编译指令,确保仅在调试模式下启用控制台日志输出,方便开发调试
1 parent 7e5c9ec commit ebd422d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GameFrameX.Launcher/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ internal static class Program
66
{
77
private static async Task Main(string[] args)
88
{
9+
#if DEBUG
10+
LogOptions.Default.IsConsole = true;
11+
#endif
912
await GameApp.Entry(args, () =>
1013
{
1114
CacheStateTypeManager.Init();

0 commit comments

Comments
 (0)