c# - How do I debug a console app that seems to exit immediately on startup? -


i have console app polls pop3 server, , first thing connect , log on. takes maybe 1 second normally. application works find on dev machine, when deploy staging box, when try , run it, see millisecond flash of console window, , exits.

i have added unhandledexception handler program class of app tell me more (i can tell when it's redeployed, smallish process), there source of error info outside of app itself, somewhere in windows tracing or error log. windows logs on staging machine huge, , don't quite know or look.