Skip to content

Add -WaitForDebugger command line flag - #183

Merged
BenjaFriend merged 1 commit into
mainfrom
command-line-update
Aug 8, 2026
Merged

Add -WaitForDebugger command line flag#183
BenjaFriend merged 1 commit into
mainfrom
command-line-update

Conversation

@BenjaFriend

Copy link
Copy Markdown
Member

Summary

Test plan

  • Verified under gdb: Sandbox -WaitForDebugger=true hits SIGTRAP exactly at the intended line in Engine::Startup; running without the flag proceeds straight through with no trap.
  • Not covered by the automated FlingTests suite intentionally — triggering the trap with no debugger attached would abort the test process in CI.

🤖 Generated with Claude Code

Adds a cross-platform F_DEBUG_BREAK() macro (MSVC __debugbreak,
Clang __builtin_debugtrap, GCC raise(SIGTRAP)) and wires
-WaitForDebugger=true into Engine::Startup right after
FlingConfig::Get().Init(), so a debugger can catch the process early
in startup on any platform. Verified under gdb: hits the trap exactly
at that line when the flag is set, and is a no-op when it's not.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@BenjaFriend
BenjaFriend merged commit e2933a6 into main Aug 8, 2026
4 of 6 checks passed
@BenjaFriend
BenjaFriend deleted the command-line-update branch August 8, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a "waitfordebugger" command line argument

1 participant