Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple way of debugging
Message
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01282023
Message ID:
01282402
Views:
6
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Suppose I want to find out a simple thing -
>
>string strTest = "test'another test";
>strTest = strTest.Replace("'","\'");
>
>How can I check my strTest without running the website in a debugger (sort of a command window in VFP)?
>
>Do I still have to run something in Debugger and then try to use Immediate window?

You can turn on trace for the page or the entire application and then use Trace.Write to display info.

Trace.Write("*** strTest = " + strTest);

One way to turn on page level tracing, add the attribute Trace="true" to the "< %@ Page" declaration that is the first line of the aspx page.

< %@ Page Trace="true"
Michael McLain
Previous
Reply
Map
View

Click here to load this message in the networking platform