0

I am currently trying t debug a schedule task using dot peek symbolserver and visual studio.

Problem is that the process which runs the task, is not available until I start the task, which timingwise causes someproblems with breakpoints having to catch the function being executed.

Any suggestions to how one could debug a schedule task.

More specific to the case:

I don't have access to the code, which is why i use dotpeek to see where it goes wrong. The code should work as it is. I am looking for what enviromental changes may have caused this to not function, or where exaclty in the code is it faulting and why

famle
  • 471
  • 2
  • 6
  • 10

1 Answers1

0

Any suggestions to how one could debug a schedule task.

You can try to include the method Debugger.Launch in your code.

Debugger.Launch: Launches and attaches a debugger to the process.

Certify: Debugging an app launched through scheduled tasks

Leo Liu
  • 71,098
  • 10
  • 114
  • 135
  • I don't have access to the code, which is why i use dotpeek to see where it goes wrong. The code should work as it is. I am looking for what enviromental changes may ave caused this to not function, or where exaclty in the code is it faulting. – famle Jul 23 '18 at 09:21
  • @famle, If you could not access to the code, it seems we could not debug a schedule task wit Visual Studio currently, you may have to find out where exactly in the code is it faulting :(. – Leo Liu Jul 23 '18 at 09:26