Start Debugger "from running program"
-
I have a question, starting the debugger somehow indirectly, in this szenario: 1) I start a dot-net-executable within a batch-file 2) When this exe is started from the batch, I want, that the debugger is started "automatically", so that I have the chance to trace the running exe (e.g. by breakpoints) Question: How can I start the debugger this way? Thank you
-
I have a question, starting the debugger somehow indirectly, in this szenario: 1) I start a dot-net-executable within a batch-file 2) When this exe is started from the batch, I want, that the debugger is started "automatically", so that I have the chance to trace the running exe (e.g. by breakpoints) Question: How can I start the debugger this way? Thank you
Maybe wait for it to throw an unhandled Exception? But seriously, you can't do it that way. If you're using Visual Studio to develop the app you can attach the debugger to a running app by opening the solution and using the menu: Debug | Attach to process... then select the process from the list. What I have done with Windows Services is have them pause for a minute when they start so I have time to attach the debugger; you may need to do something like that.
-
I have a question, starting the debugger somehow indirectly, in this szenario: 1) I start a dot-net-executable within a batch-file 2) When this exe is started from the batch, I want, that the debugger is started "automatically", so that I have the chance to trace the running exe (e.g. by breakpoints) Question: How can I start the debugger this way? Thank you
-
I have a question, starting the debugger somehow indirectly, in this szenario: 1) I start a dot-net-executable within a batch-file 2) When this exe is started from the batch, I want, that the debugger is started "automatically", so that I have the chance to trace the running exe (e.g. by breakpoints) Question: How can I start the debugger this way? Thank you
-
I have a question, starting the debugger somehow indirectly, in this szenario: 1) I start a dot-net-executable within a batch-file 2) When this exe is started from the batch, I want, that the debugger is started "automatically", so that I have the chance to trace the running exe (e.g. by breakpoints) Question: How can I start the debugger this way? Thank you
I use the following for debugging on my dev machine System.Diagnostics.Debugger.Assert(false); When it executes it pops a dialog that asks for the debugger to run via the 'retry' option on the first popup. Once the debugger starts there is a break point on the above line. There are limitations to this such as where the app is running and timeout issues with execution threads (with the debug line).