How to debug in full screen mode?

Started by
5 comments, last by Adam_42 8 years, 8 months ago

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.

Advertisement

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

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

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)

Crealysm game & engine development: http://www.crealysm.com

Looking for a passionate, disciplined and structured producer? PM me


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.

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)

Crealysm game & engine development: http://www.crealysm.com

Looking for a passionate, disciplined and structured producer? PM me


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! )

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.

This topic is closed to new replies.

Advertisement