How to debug in full screen mode?

This topic is 1272 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hello.

According to documentation:

A DXGI swap chain relinquishes full-screen mode only when absolutely necessary. This means that you can debug a full-screen application using multiple monitors, as long as the debug window doesn't overlap the swap chain's target window.

But when I call

swapChain->SetFullscreenState()

one monitor shows an output and another becomes black.

Share on other sites

You realise that you need to be on a breakpoint or uncaught exception to debug right?

Share on other sites
It depends, if you just want to follow the running debug output, you might want to use a 2nd monitor and execute and or debug on the 2nd one (extend desktop)

Share on other sites

You realise that you need to be on a breakpoint or uncaught exception to debug right?

Yes, of course. The code hits a breakpoint, but still my second monitor is just black.

It depends, if you just want to follow the running debug output, you might want to use a 2nd monitor and execute and or debug on the 2nd one (extend desktop)

I'm doing exactly that.

Share on other sites
It might have to do with your display settings.
I would think you need to use "extend desktop" and make the monitor you want to debug on/ see visual studio during debugging, the secondary one. Then the app should run on the primary one (if not, you might have to force this through either your code or the device driver)

Share on other sites

I would think you need to use "extend desktop" and make the monitor you want to debug on/ see visual studio during debugging, the secondary one. Then the app should run on the primary one (if not, you might have to force this through either your code or the device driver)

Exactly! Thank you very much! )

Share on other sites

For some cases having a second PC you can use to remote debug to can be very handy, especially when the problem is with switching back and forth from full screen mode.

• What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 15
• 10
• 11
• 9
• 9
• Forum Statistics

• Total Topics
634146
• Total Posts
3015779
×