Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple way of debugging
Message
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01282023
Message ID:
01282402
Vues:
7
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform