we have a server which is running WinSrv 2008 (not R2). There is a scheduled task on this server which runs at startup and just runs continuously, waking on an interval per a db setting to do work and then go back to sleep (the client wanted to be able to control the interval through a related website, which is why it is done as a continual-run app instead of using Task Scheduler's timing).
There is a problem with the app though which only happens after hours and hours of running, which makes it hard to try to debug in the code because it always runs fine and I can't sit around and just wait for my code for hours and hours.
Before I go putting in a massive state-debugger after every line or something, I'm wondering is there any way which I can log in to the server and see the actual program that is running under Task Scheduler?
What I mean is, by running the task in Scheduler, it runs in a sort of invisible, background login session. Is there any way to "adopt" it into my login session so that I can see the program window
as it is currently running, so I can see the state of it?