Remote Debugging

C

chris fink

I am attempting to remote debug a process (C# application) whose execution
time is less than 2 seconds. When attempting to attach this process from
the client machine, I am unable to catch the process in time.

Any suggestions on how to fix this issue? I understand once the process is
attached I can set my breakpoints, the only problem is that the process I am
attaching to runs so quickly I am not able to attach to it.

Thanks
 
J

José Joye

I had to face the same kind of problem.
I defined a key in my config file that is used to place the process in sleep
mode after it started (eg: TimeToSleepAfterStart: 60s)

So, In my code, I execute a Thread.Sleep() if the value read from the config
file is greater than 0.

José
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top