-
-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add debug break override support #277
Comments
I won't be able to get to this in the near future, and I would much rather have support for the different compilers/platforms than to just have another config option - doctest should provide this out of the box. Here are 2 things I've saved for inspection for this feature:
If a Pull Request materializes it will get merged! The only requirement is that the doctest_fwd.h part doesn't include any headers. |
Hi @onqtam, For the isDebuggerActive() check, the platform I mentioned uses a proprietary API for this that is covered by a non-disclosure agreement, so I'm not sure if supporting all platforms out of the box makes sense for a case like that. What do you think? Additionally, the debugbreak library you linked to does not support this platform, which uses the __debugbreak() intrinsic but not the MSVC compiler. It's of course trivial to add an ifdef to either doctest or the debugbreak library to support this, but neither would currently work out of the box. Thanks, |
I just read your patch and that is not a bad idea - I'll add it to the dev branch right now, but I can't promise a release date for an official version. What's the target platform? (out of curiosity) |
Hi @onqtam, I'm specifically working on PlayStation right now, but in general I work on all the game consoles, and except for XBox which uses the Windows tools and APIs, all of the other game consoles do different things for APIs and compilers, so this issue applies concerns basically any non-XBox game console. Thanks, |
Oh, and there is no hurry for this, I've patched it locally already. Thanks, |
releasing 2.3.5 |
Hi @onqtam,
I'm using doctest on a platform that doesn't support the exisiting DOCTEST_BREAK_INTO_DEBUGGER() and isDebuggerActive() implementations. Would you mind adding something like this to support customizing these?
Thanks,
Benbuck
The text was updated successfully, but these errors were encountered: