Silverfrost Forums

Welcome to our forums

Extreme slowdown when debugging .NET code

13 Jun 2013 2:16 #12386

Hi, I'm experiencing huge slowdown when I try to debug a .NET-code in VisualStudio. After I set a breakpoint in a subroutine, which is relatively large, VisualStudio hangs for 4-5 minutes (Message: VisualStudio is busy) before values get loaded and I can continue working. This makes debugging almost impossible. Interesting is that when I set a breakpoint in subroutine, which is relatively small, values are loaded almost instatly. There is definitive a connection to the subroutine size. Is there any way to avoid this problem - maybe some debug switch while compiling/linking or something similar? I work on Win-7 and VisualStudio 2008.

13 Jun 2013 3:01 #12389

If you are using CHECKMATE then try reducing to DEBUG.

13 Jun 2013 3:20 #12390

What do you mean by 'try reducing'? What should I reduce?

13 Jun 2013 3:25 #12391

I compile with following switches:

/NO_BANNER /DEBUG /UNDEF /CHECKMATE /FULL_DEBUG /BOUNDS_CHECK /F2K /WIDE_SOURCE /STANDARD_ERROR_REPORTS /SINGLE_THREADED /FPP /IGNORE 179 /CLR /CLR_VER 2 /VS8 /DELETE_OBJ_ON_ERROR /ERROR_NUMBERS /UNLIMITED_ERRORS

13 Jun 2013 4:22 #12395

Reduce the checking options by using DEBUG but not CHECKMATE not UNDEF and not FULL_UNDEF.

13 Jun 2013 6:39 #12400

Avoiding those 3 switches doesn't really help, even when using only /DEBUG it still takes way to long. It seems that the delay is caused by loading variable values into memory. Any other advices?

14 Jun 2013 6:01 #12404

No not really. Problems of this kind are usually only resolved by the 'binary chop'. That is reducing the code until the problem goes away then building slowly back up until the problem is localised.

14 Jun 2013 7:20 #12405

Hm, I guess you imply that a certain line of code is causing the slowdown. In my opinion it is simply the large amount of data, since I experience the same problem in several FTN-programs. As soon as the routine gets 'rather large’ slowdown appears. One more thing: while waiting for Silverfrost to make FTN Win-8 capable, we were forced to rebuild one of our programs so that it works as a COM-server (with another Fortran compiler), so I can now compare more or less the same code which in one case works in .NET-environment (FTN) and once as COM (alternative compiler). I can definitely confirm that this debugging slowdown problem appears only with FTN. I cannot say if this is a .NET issue or general FTN issue, but it apperas only in this combination.

18 Jun 2013 7:45 #12422

Would you say the slowdown is related to the amount of code in the project or the amount of data?

Please login to reply.