How can I determine if project is running in authoring, stand-alone player, or web player?

I want to run debug code for authoring playback but not stand-alone or web player.

Use Application.platform.