openframeworks / openframeworks/openFrameworks
Debugging fullscreen application in Visual Studio is not possible
@ofTheo is already working on this.
Since Sep 13, 2019.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Today I tried debugging an app in fullscreen mode (oF-0.10.1, VS2017, Windows 10 Home) and to my surprise this almost causes a 'deadlock' situation, by lack of a better word.
The problem is that VS tries to grab focus as soon as a breakpoint is hit, but it stays invisible behind the fullscreen application. The application otoh does not respond of course, as it is paused. Keyboard focus does work though, so I can hit Shift-F5 (Stop debugging) to quit the application, but actually doing any debugging is impossible.
Pressing Alt+Tab shows the task switcher, but that's it. Opening the task manager via Ctrl+Alt+Del does not help either since that too stays behind the fullscreen application... so it really seems impossible to have the fullscreen app move out of the way.
This problem in general is mentioned in several places, for instance here.
What seems to fix it, is replacing the HWND_TOPMOST flag in ofAppGLFWWindow::setFullscreen() (here and here) with HWND_NOTOPMOST.
So my question is: would it be an idea to allow controlling this in some way? Perhaps as an argument to ofSetFullscreen, but since this is platform specific, another construction might be better (e.g. a preprocessor define).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.