StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Data Debug ModeExpand / Collapse
Author
Message
Posted 03/18/2008 2:44:50 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 09/27/2008 2:00:26 AM
Posts: 152, Visits: 459
In Strataframe documentation, I couldn't find any related information about this topic ?

Could you give us some information ?

Post #14979
Posted 03/18/2008 8:55:47 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 09/26/2008 8:30:36 AM
Posts: 2,685, Visits: 1,886
I'm not sure where in the documentation it is, but there are several posts on how to set the debug mode on a data source. 

http://forum.strataframe.net/FindPost5090.aspx

That one might help.  Like it says, simply call SetDebugOn() on the data source, then check the output HTML file for all of the commands that were executed through it.


www.bungie.net
Post #14984
Posted 03/19/2008 2:00:37 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 1:53:45 AM
Posts: 224, Visits: 1,106
Hi Ertan,

This falls into the 'dirty but effective' category. We have the following code in the InitApplication sub in all our AppMain's.

        If System.IO.File.Exists("C:\WINDOWS\Temp\TMSSQLLog.html") Then
            MicroFour.StrataFrame.Data.DataBasics.DataSources("").SetDebugOn("C:\WINDOWS\Temp\TMSSQLLog" & System.Diagnostics.Process.GetCurrentProcess.Id.ToString & ".html", True)


With this we get a unique logging file for each Project and we can turn logging on/off as needed by manually creating/deleting the C:\WINDOWS\Temp\TMSSQLLog.html file.

Cheers, Peter

Post #15008
Posted 03/19/2008 9:44:31 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:11:57 AM
Posts: 4,586, Visits: 4,570
Peter,  that is a good idea.  We actually have a registry key that we look for in our application that allows us to turn on debugging on the run-time application.  We also have a registry key that allows the path and file name to be specified.  Since it is generally a developer that prompts this log to be created, this has been pretty effective for us.
Post #15018
Posted 05/21/2008 4:05:56 PM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 12:59:18 AM
Posts: 633, Visits: 2,606
Trent L. Taylor (03/19/2008)
Peter,  that is a good idea.  We actually have a registry key that we look for in our application that allows us to turn on debugging on the run-time application.  We also have a registry key that allows the path and file name to be specified.  Since it is generally a developer that prompts this log to be created, this has been pretty effective for us.

Hi Trent,

Is there any plan to include this functionality in SF?

Also does the call to SetDegubOn() should be done per each form, or is this a global setting that can be done once and will affect all forms?

 
Post #16515
Posted 05/21/2008 5:06:33 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:11:57 AM
Posts: 4,586, Visits: 4,570
Is there any plan to include this functionality in SF?

Technically it is already there.  You just need to have the ability (if you would like) to turn it on within your application at run-time. For example, in the SetDataSources methods of the AppMain.vb or program.cs, you would just look to see if that key is set, and if so, turn on the debugging.

Also does the call to SetDegubOn() should be done per each form, or is this a global setting that can be done once and will affect all forms?

No.  This is per data source, the individual BOs, forms, etc. have nothing to do with it.  If you turn on debugging it is for a particular data source.

Post #16517
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 9:53am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 8 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.