Remote Debugging

  • Thread starter Thread starter chris fink
  • Start date Start date
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
 
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é
 
Back
Top