Skip to content

Debug-ability improvements#882

Merged
vsonnier merged 4 commits intomasterfrom
vso_custom_assert
Mar 1, 2026
Merged

Debug-ability improvements#882
vsonnier merged 4 commits intomasterfrom
vso_custom_assert

Conversation

@vsonnier
Copy link
Collaborator

@vsonnier vsonnier commented Mar 1, 2026

  • Replace PARANOID by regular Debug conditionals : Just have Release or Debug builds
  • Stack trace : on Linux/MacOS print addresses first on a single line to ease addr2line usage + skip symbols resolution on MacOS => not tested
  • Sys_Error/Host_Error : Debug-friendly improvements:
    1. Automatically break in debuggers when running in one (Sys_DebugBreak)
    2. Do not generate pop-up, nor stack traces while executing in debuggers
      => Windows : OK
      => Linux and friends : not tested
  • More detailed assert(): use Host_Error (in main thread) and detailed printf + exit() on other threads

vsonnier added 4 commits March 1, 2026 11:30
…o ease addr2line usage + skip symbols resolution on MacOS
- Automatically break in debuggers when running in one (Sys_DebugBreak)
- Do not generate pop-up, nor stack traces while executing in debuggers

Windows : OK
Linux and friends : not tested
The C standard mandates assert() is to be a macro to be able to be replaced/customized at will
@vsonnier vsonnier merged commit 26bffcc into master Mar 1, 2026
18 checks passed
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.

1 participant