How can I debug compiled application?

I wrote simple app which runs correctly in Unity editor,
but when I compile it as a Windows desktop app and run it in Windows, it doesn’t work.
How can I find out what is going on?

Read the log file, that is in _Data folder. If you don’t understand what you read, post it here.