Debugging very slow

I have recently converted an application from VS.NET 2003 to VS.NET 2005. In VS.NET 2005, when I set a breakpoint and try to Step Into (F11) or Step Over (F10) lines of code the response time to get to the next line is about 4-5 seconds. This occurs with even very basic lines of code (such as x += 1). Debugging the same project in VS.NET 2003 had no noticeable lag time for Stepping Into simple lines of code. The application also runs normally on the device (in VS.NET 2005 debugger) when no breakpoints are set. I am debugging on a Dell Axim X51v Windows Mobile 5 device (not emulator), using wireless connection and static IP address. Can anyone tell me what the problem may be or what I should look at in my environment to fix the issue

Answer this question

Debugging very slow

  • Manubhaskar

    How is the debugging response time when debugging on an emulator Wireless connections are not fast enough and what you might be observing is mostly related to network delays. Try debuggin with device cradled over ActiveSync.

    Manav



  • anubisascends

    Can you write a simple application and try debugging on the device This would narrorw down the scenarios where it is taking most time. If the debugging is still slow, it means that something not right about your device. If it is fast than something not right about your serial communication/network connectivity.

    Manav



  • r.matteja

    Thanks Manav - It is considerably faster when debugging on an emulator (about 1 second per line). Unfortunately, my application requires that the device be physically connected to a host PC through a serial cable for DEX transmissions (sending invoice data to a retail system). I don't have the option of using either ActiveSync to connect to my device since the DEX cable is using the port, or using an emulator (at least not when debugging the DEX functionality). I would also think it is an issue with the wireless connection/network, except that it was working fine in VS.NET 2003.
  • MickBeth

    It definitely was something with the device. I did a hard reset of the device and now it is stepping through the code as it should be (less than 1 second per line for most lines). Reset probably should have been the first thing I tried. Thanks for responses.
  • Debugging very slow