Link to home
Start Free TrialLog in
Avatar of akohan
akohan

asked on

how to trace



Hello,

how can I trace an asp code? I'm using VS 2010 and need to trace following code. Is it possible?

Thanks!

<asp:Button ID="btnAddToCart" runat="server" OnCommand="OnCommand" Text="add to cart"
                        CommandName="AddToCart" CommandArgument='<%#Eval("ProductVariantId")%>' CssClass="productvariantaddtocartbutton" />

Open in new window

Avatar of SunnyDark
SunnyDark
Flag of Israel image

You should be able to just put a break point, why that's not an option?
Avatar of akohan
akohan

ASKER


In C# code it shows up when I create a break point but in javascript it doesn't show any thing!


you could do a few things in asp enable the tracing for a page writing a trace message using TraceContext.Write or TraceContext.Warn or simply use the breakpoint. There is also a application level tracing.
ASKER CERTIFIED SOLUTION
Avatar of hank2011
hank2011

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of akohan

ASKER

Thanks.