Is it possible to set a symbolic breakpoint for when an iOS device turns to landscape?

I'm debugging an issue where the device unexpectedly turns to landscape and back to portrait orientation, and trying to find the root cause of it.