Skip to content

Add console and file debug logging#16

Open
wowjinxy wants to merge 7 commits intomainfrom
codex/add-debug-logging-to-console-and-txt
Open

Add console and file debug logging#16
wowjinxy wants to merge 7 commits intomainfrom
codex/add-debug-logging-to-console-and-txt

Conversation

@wowjinxy
Copy link
Owner

@wowjinxy wowjinxy commented Aug 1, 2025

Summary

  • introduce a debug_log helper that opens a console and writes all diagnostic messages to both the console and debug_log.txt
  • switch existing debug prints in hooks, GDI hooks, and the 0x004A1F8A stub to use DebugLog
  • initialize and shut down logging during DLL and WinMain startup/teardown and include the new files in the Visual Studio project

Testing

  • x86_64-w64-mingw32-g++ -c digi_analysis/debug_log.cpp
  • x86_64-w64-mingw32-g++ -c digi_analysis/sub_004A1F8A.cpp -std=c++17 (fails: expected '(' before '{' token)

https://chatgpt.com/codex/tasks/task_e_688c21ce033c832f99c525dc23e9e089

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant