<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : How To Use the IdeaBlade DebugLog and TraceViewer</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : How To Use the IdeaBlade DebugLog and TraceViewer</description>
  <pubDate>Tue, 14 Apr 2026 12:57:58 -700</pubDate>
  <lastBuildDate>Mon, 03 Nov 2008 15:15:56 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=982</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>How To Use the IdeaBlade DebugLog and TraceViewer : I just wanted to add this bit...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=982&amp;PID=3551#3551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=92" rel="nofollow">HFloyd</a><br /><strong>Subject:</strong> 982<br /><strong>Posted:</strong> 03-Nov-2008 at 3:15pm<br /><br />I just wanted to add this bit of info for newbies who might benefit from it.<br><br>If you'd like to be able to watch your application make calls to the database, etc. in real time and see where performance bottlenecks are occurring, set up your app to use the built-in IdeaBlade TraceViewer.<br><br><table width="99%"><tr><td class="BBquote"><br><div><span ="984550919-01112006"><font face="Arial"><strong>Add                                                        the TraceViewer to Your                                                        Program</strong></font></span></div>                                                <div><span ="984550919-01112006"></span>&nbsp;</div>                                                <div><span ="984550919-01112006"><font face="Arial" size="2">It's                                                      incredibly easy to do.</font></span></div>                                                <ol><li><span ="984550919-01112006"><font face="Arial" size="2">In                                                        your start-up project,                                                        add a reference to <font color="#0000ff" face="Courier New" size="2">IdeaBlade.UI.WinForms.PlatformControls</font>.</font></span> </li><li><span ="984550919-01112006"><font face="Arial" size="2">Open                                                        your start-up class (typically                                                        Program.cs or Program.vb).</font></span> </li><li><span ="984550919-01112006"><font face="Arial" size="2">Find                                                        the <font color="#000080" face="Courier New">static Main</font> method (<font color="#0000ff" face="Courier New">Shared Main</font> in VB).</font></span> </li><li><span ="984550919-01112006"><font face="Arial" size="2">Make                                                        some room just&nbsp;below                                                        any calls to the <font color="#0000ff" face="Courier New">Application</font> class (e.g., <font size="2"><font color="#0000ff" face="Courier New">Application.EnableVisualStyles()</font>).</font></font></span> </li><li><span ="984550919-01112006"><font face="Arial" size="2">Add                                                        the following code to                                                        show the TraceViewer.</font></span></li></ol>                                                <blockquote dir="ltr" style="margin-right: 0px;">                                                  <div><span ="984550919-01112006"><font color="#0000ff"><span ="984550919-01112006">                                                    <p><font size="2"><font face="Courier New"><span ="984550919-01112006"><font color="#008000">// C#:</font><br>                                                      </span><font color="#000000">IdeaBlade.UI.WinForms.PlatformControls</font>.<font color="#008080">TraceViewerForm</font> <font color="#000000">traceForm</font></font><span ="984550919-01112006"><font face="Courier New"><font color="#000000">;<br>                                                      traceForm =</font> </font></span></font><font face="Courier New"><font size="2">new <font color="#000000">IdeaBlade.UI.WinForms.PlatformControls</font>.<font color="#008080">TraceViewerForm</font><font color="#000000">();<br>                                                    </font></font><font color="#000000" size="2">traceForm.Show();</font></font></p>                                                    </span></font>                                                        <p><font color="#0000ff"><span ="984550919-01112006"><font face="Courier New" size="2"><font color="#008000">'                                                                  VB.NET:</font><br>                                                          </font></span></font><font size="2"><font face="Courier New"><font color="#0000ff">Dim</font> traceForm <font color="#0000ff">As _<br>&nbsp;&nbsp; </font> <font color="#0000ff">New</font> IdeaBlade.UI.WinForms.PlatformControls.<font color="#008080">TraceViewerForm</font>()<br>            traceForm.Show()</font></font></p>                                                  </span></div>                                                </blockquote>                                                <font color="#008080"><span ="000214400-01112006">                                                  <div><span ="984550919-01112006"><font color="#000000" face="Arial" size="2">That                                                        is all there is to it.                                                        Next time you launch                                                        your application, the                                                        TraceViewer will appear,                                                        followed shortly thereafter                                                        by your application's                                                        main window. You can                                                        toggle between the two                                                        windows at will.</font></span></div>                                                  <div><span ="984550919-01112006"><span ="984550919-01112006"></span> </span></td></tr></table></div></span></font><br>More info about the TraceViewer is here: <a href="http://www.ideablade.com/techtip_what_is_myDevForce_applicati&#111;n_doing.htm" target="_blank">http://www.ideablade.com/techtip_what_is_myDevForce_application_doing.htm</a><br><br>To add your own messages to the TraceViewer's DebugLog.xml file, <br><br>1. Add "<font face="Courier New, Courier, mono">using IdeaBlade.Util;</font>" to the file.<br><br>2. Write your debug statements like this:<br>&nbsp;&nbsp;&nbsp; <font face="Courier New, Courier, mono">DebugFns.WriteLine("My debug Message");<br></font><br><br>-Heather<br>]]>
   </description>
   <pubDate>Mon, 03 Nov 2008 15:15:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=982&amp;PID=3551#3551</guid>
  </item> 
 </channel>
</rss>