1. Tim Robertson
  2. SnapDevelop
  3. Tuesday, 21 June 2022 05:08 AM UTC

I have a significant Analysis tool originally written in PowerBuilder and Migrated to C# using SnapDevelop.  It has a dozen DataStore Objects and does some serious Retrieve and Update operations during the course of it's run.  When I run it packaged outside of SnapDevelop, it runs with reasonable performance, when I try to Start it within the Tool using the Debugger, it writes out each SQL statement and tread transition as well as likely other stuff.  Although I am sure this is interesting to someone doing a simple GUI or WebApp, it merely slows the process of debugging to a crawl.  The IDE remains mostly responsive, but single step after a breakpoint waits until all of the queued up output for the Debug window is completed.  "Clear", just truncates the earlier output, but does nothing to stop it.  I have tried playing with appsettings.json (although this is a Console App) setting LogLevel, but this does not look like output from the MS Logger in any case.

Is there a Configuration in the project file to turn this off, I find no settings in the Tool that provide any affect.  I hoped that with the 2021 version, this would be addressed, but it seems to be in this version as it was in the 2019 version.

Any advice would be great.  I have not tried to switch to Visual Studio to see if the problem follows to there as well.

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 21 June 2022 13:22 PM UTC
  2. SnapDevelop
  3. # 1

Hi Tim, Would you be able to open support ticket and provide the C# source code so our team can try to reproduce?  

Comment
  1. Tim Robertson
  2. Wednesday, 6 July 2022 00:19 AM UTC
Armeen, Bug 8656 is now logged.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 6 July 2022 00:45 AM UTC
Thanks!
  1. Helpful
There are no comments made yet.
Tim Robertson Accepted Answer Pending Moderation
  1. Wednesday, 3 August 2022 23:32 PM UTC
  2. SnapDevelop
  3. # 2

Resolvedcool

 

I received a solution from Support via the Bug and doing the following resolved my issue:

I added in my Main()

using System.Diagnostics;
...
Trace.Listeners.Clear()

This worked perfectly.  The IDE is now responsive when there has been lots of activity between breakpoint or the process ends.

 

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 4 August 2022 00:28 AM UTC
Thanks for sharing the solution!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.