Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
2.25/5 (3 votes)
See more:
Is it possible to write a method that automatically runs/debugs a project in visual studio at a specific given time? and if so is there any examples??

Thank you
Posted
Comments
johannesnestler 31-Oct-14 7:35am    
What you mean with "method"? Are we talking about a VS-Extension or some standalone program? To automatically run a Programm sounds like a resonable "desire" - could it be a sheduled Task that runs a script and executes your project? What you can possibly mean with "autmatich debug" is beyond my imagination - can you clarify what you want to achieve...
1Future 31-Oct-14 9:47am    
YES ..sorry .. " Are we talking about a VS-Extension or some standalone program? To automatically run a Programm sounds like a resonable "desire" - could it be a sheduled Task that runs a script and executes your project?" - exactly that

1 solution

To run something on scheduler, you need some service doing it. One such service already exists, is bundled with Windows. For further detail, please see my past answers: Problem a Window Services[^].

It's not clear what are you going to do with a debugger. Anyway, if you are looking to launch the debugger and attach it to your process, please read this:
http://msdn.microsoft.com/en-us/library/system.diagnostics.debugger.launch%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/System.Diagnostics.Debugger%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900