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.
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.
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?
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
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.
Could you give us some information ?