Trace/Debug .aspx/.ascx/.ascx.cs ?

Can anybody help me how to Trace/Debug .aspx/.ascx/.ascx.cs in VS IDE?
Many thanks for your help!

Maybe start here:
<a href="http://msdn2.microsoft.com/en-us/library/k0k771bt(VS.80).aspx">http://msdn2.microsoft.com/en-us/library/k0k771bt(VS.80).aspx</a>
http://www.odetocode.com/Articles/425.aspx
Cheers,
Corbin

Similar Messages

  • ESYU: R12 - R12 Trace/Debug file을 생성하는 방법

    Purpose
    Version: 12.0
    Information in this document applies to any platform.
    R12에서 Trace와 Debug file 생성 방법을 알아본다.
    Solution
    1. Navigate Responsibility: System Administrator> Profile> System>Query
    User: Trace를 생성할 user 명을 입력
    Profile: Initialization SQL Statement - Custom
    2. User columne에 아래의 내용을 입력
    begin fnd_ctl.fnd_sess_ctl('','','TRUE','TRUE','LOG','ALTER SESSION SET EVENTS='||''''||'10046 TRACE NAME CONTEXT FOREVER,LEVEL 12'||''''); end;
    3. 입력한 내용을 저장
    FND debug messages를 생성:
    4. Navigate Responsibility: System Administrator> Profile> System>Query
    User: Debug를 생성할 user 명을 입력
    Profile: FND:%Debug%
    5. 아래 profile options 값을 user level로 set
    FND: Debug Log Enabled Yes
    FND: Debug Log Filename <empty>
    FND: Debug Log Level STATEMENT
    FND: Debug Log Mode Asynchronous with Cross-Tier Sequencing
    FND: Debug Log Module %
    6. 입력한 내용을 저장
    Example:
    7. Navigate: Payables Responsibility> Other> Request> Run> Select and Submit the Report
    (특정 Report를 실행한다)
    8. Trace 와 FND Debug messages를 disable
    9. FND Debug message를 찾기위해 아래 query를 실행
    select log_sequence, timestamp, module,message_text
    from fnd_log_messages fnd
    where trunc(timestamp) = trunc(sysdate)
    and (module like '%xla.%' or module like '%ap.%')
    and trunc(timestamp) = trunc(sysdate)
    order by timestamp;
    SELECT log_sequence, message_text,substr(module,1,100)
    FROM fnd_log_messages msg
    , fnd_log_transaction_context tcon
    WHERE msg.TRANSACTION_CONTEXT_ID = tcon.TRANSACTION_CONTEXT_ID
    AND tcon.TRANSACTION_ID= /*Give the request id of accounting program*/
    ORDER BY LOG_SEQUENCE desc
    Debugging의 활성화를 위해 아래 profile option을 사용:
    FND: Debug Log Enabled : Yes
    FND: Debug Log Level : Statement
    Debug message를 얻기 위해 아래 query 문을 사용:
    SELECT substr(module,1,70), MESSAGE_TEXT, timestamp, log_sequence
    FROM fnd_log_messages msg, fnd_log_transaction_context tcon
    WHERE msg.TRANSACTION_CONTEXT_ID = tcon.TRANSACTION_CONTEXT_ID
    AND tcon.TRANSACTION_ID = <your child request ID>
    ORDER BY LOG_SEQUENCE
    10. 아래 SQL을 이용해 trace file이 생성되는 위치를 확인, raw trace와 tkprof'd trace
    file을 upload
    select value
    from v$parameter
    where name = 'user_dump_dest';
    Reference
    Note 458371.1

  • Trace/Debug not working

    I am not seeing traces in the xsengine trace log; nor am I able to effectively set breakpoints in the Web Editor and stop page processing. I'll start by defining roles and configuration, describing actions that aren't working, and then finish with 2 questions.
    ROLES AND CONFIGURATION
    According to the developer guide, the following configuration and roles need to be in place for tracing and debugging to work. This is our current role state:
    User assigned Debugger role
    To change Trace level, user assigned TraceAdmin role
    User assigned TraceViewer role, child role of Developer
    To view tracing, confirm the following configuration. This is our current config state.:
    In the xsengine.ini file, the debugger > enabled node is set to true
    In the xsengine.ini file, the httpserver > developer_mode node is set to true
    ACTIONS
    To start tracing, set the Trace level for your package, e.g., debug. Include a trace call in the code, e.g., $.trace.debug("testing debug trace"). In the Web Editor, run the xsjs file, and in the resulting browser window, click the Call Backend button. Here is where my issues begin: there is no Call Backend button, in any browser version.
    To start debugging, set breakpoints in the Web Editor by clicking the line number. A breakpoint is indicated by a red arrow on the line number. Then run the page. The page should stop processing at that point. (You can also set breakpoints in Hana Studio by running in Debug perspective, and setting a debug configuration. I tried this also, but was unable to create a desired configuration for port 443; this is a separate issue, outside the scope of this discussion.)
    QUESTIONS
    What am I missing in setting up tracing?
    What am I missing in setting up debugging?
    Thanks in advance for any guidance.
    Bill

    Krishna,
    Thank you for your response. Running breakpoints in the Hana Studio debug perspective has its own set of challenges for us. The web server is using ssl, and thus is set to port 443, rather than port 80(server instance number). I have not been able to successfully create a configuration for running xsjs scripts through Hana Studio. But I'll keep trying.
    Bill

  • Trace/Debug a JDBC2 query

    Hi,
    How do I trace/debug a JDBC query before it gets executed by Oracle.
    I have a query that works in SQL Plus, but when I try to execute it from my application, it always gives an empty resultset. (The connection works, and all other queries works).
    Here is the query in Java format:
    "SELECT instrument_id, code, name, " +
    " latest_buy, latest_sell " +
    "FROM instrument " +
    "WHERE upper(name) like(upper('?%')) " +
    " OR upper(code) like(upper('?%')) " +
    "ORDER BY name";
    I replace the question marks by using, setString in PreparedStatement.
    Now I would like to view the final query before execution. How should I do that?
    thanks
    /Kaj
    [email protected]
    null

    (1) You cannot replace values inside of SQL quotes. The ? in you query are literal characters.
    (2) You can see how JDBC transforms your SQL with the following code snippet from the JDBC manual.
    import oracle.jdbc.driver.OracleSql;
    public class Foo
    public static void main (String args[]) throws Exception {
    show ("{call foo(?, ?)}");
    show ("{? = call bar (?, ?)}");
    show ("{d '1998-10-22'}");
    show ("{t '16:22:34'}");
    show ("{ts '1998-10-22 16:22:34'}");
    public static void show (String s) throws Exception {
    System.out.println (s + " => " + new OracleSql().parse (s));
    } }

  • How to trace/debug main workflow calling sub workflow.

    Guys,
    I am calling Sub workflow from MAIN workflow.
    I am able to trace till beginning of sub workflow, with the help of workflow log.
    But, is it possible to trace/debug the sub workflow as well(in single stretch).
    Please guide with t-codes & procedures(links).......
    Regrads.
    santosh.

    Hi Santosh,
    You should be able to see the technical log for the subflow as well - but perhaps that's not what you are asking.
    First, you should always be able to 'trace' your subflows by starting them directly via SWUS.  Then you will have the log to review.
    You can also set the workflow trace on via SWU9.
    Hope this helps,
    Sue

  • How to include External .JS File in .aspx and .ascx page???

    This is my Code::
    .aspx Code:::
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Calculator_Using_UserControl_And_Js.aspx.cs" Inherits="Calculator_Using_UserControl_And_Js" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
     <title></title>
      <script src="/JS/JavaScript.js" type="text/javascript"></script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div align="center"> 
            <p style="color:brown">Welcome to User Control Page</p> 
            A:<asp:TextBox ID="tbA" runat="server"></asp:TextBox>
            B:<asp:TextBox ID="tbB" runat="server"></asp:TextBox>
            <asp:Button ID="btnAdd" runat="server" Text="ADD" OnClientClick="return fnAdd()"/>
            <asp:Button ID="btnSub" runat="server" Text="SUB" OnClientClick="return fnSub()" />
        </div>
        </form>
    </body>
    </html>
    .JS code
    function fnAdd() {
        var v1 = document.getElementById(tbA).value;
        var v2 = document.getElementById(tbB).value;
        var res = parseInt(v1) + parseInt(v2);
        alert(res);
        return false;
    function fnSub() 
        var A = document.getElementById(tbA).value;
        var B = document.getElementById(tbB).value;
        var res = parseInt(A) - parseInt(B);
        alert(res);
        return false;
    I 've tried with the following methods but no use...
    <script type="text/javascript" src="<%= ResolveUrl ("~/Scripts/MyScriptFile.js") %>"></script>
    <script type="text/javascript" src="../JScript.js"></script>
    <script src="javascript.js" ></script>
    Thanks & Regards RAJENDRAN M

    You can write JS function as follows:
    function fnAdd(numberA,numberB,totalT) {
    var v1 = document.getElementById(numberA).value;
    var v2 = document.getElementById(numberB).value;
    var total = parseInt(v1) + parseInt(v2);
    document.getElementById(totalT).value = total;
    return false;
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    <script src="javascript.js"></script>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    A: <asp:TextBox ID="numberA" runat="server"></asp:TextBox><br />
    B: <asp:TextBox ID="numberB" runat="server"></asp:TextBox><br />
    T: <asp:TextBox ID="totalT" runat="server"></asp:TextBox><br />
    <asp:Button ID="btnAdd" runat="server" Text="Add" OnClientClick="return fnAdd('numberA','numberB','totalT');" />
    </div>
    </form>
    </body>
    </html>
    And you can do the same for fnSub

  • Trace / debug Cobol process

    How to trace or debug cobol process . For example : Records and enrollment - Enroll Students - Block enrollment - enrollment request i am getting the error :
    Remote program SRPCERC failed with reason : SELECT-CAR(FETCH)NO ROW RETURNED(2,-1) ENRL_RE_HDR_WRK.ENRL_REQ_RC_PB.FieldChange PCPC:479 Statement: 10
    Select returned no rows. From which table . Please help , how to debug this process .

    It seems there is a similar bug, described in the solution id #200970506.
    Anyway, you could set the trace by setting SQLTrace (e.g. to 3) in your ProcessScheduler config file.
    You could read the following discussion :
    http://peoplesoft.ittoolbox.com/groups/technical-functional/peopletools-l/tracing-cobol-programs-1499824
    Nicolas.

  • Personas: General topic: Will it be possible to trace/debug along the UI flow?

    Hi Personas experts,
    This may be a general question - as developers implement Personas UIs, there are often cases where the new UI does not work as expected, and we don't know what is actually going on along the UI flow. This is even difficult when we use a lot of scripting which causes complex UI actions such as pressing script buttons, copy/paste values among fields etc.
    Would it be possible to do kind of tracing/debugging/loging while executing UI in Personas, so that we can see which value is copied/pasted, or which button is pressed by the scripts?
    This would greatly help developers to work more efficiently. Please advise about this. Thanks.
    Br,
    Dong Zhu

    Debugging scripts isn't possible in Personas 2. This is one of the things I find most frustrating with the scripting functionality. Small scripts are fairly easy to build and debug. Large scripts are not. There are some things you can do to make it easier.
    The first rule is to build and test scripts is small pieces. Make sure each works before moving on to the next. Put each piece on a separate script button and chain them together by having a script push the button for the next piece. This makes it easy to break a long script in the middle for debugging, without having to delete the whole thing - just remove the appropriate Press step. You can merge all the scripts together once you are done, to avoid all the script buttons. Personally I generally just hide them, so that I easily debug later when something unexpected happens after go-live.
    Create temporary text fields to paste data into if you need to see the values being copied around. Combine this with the above technique to watch values as you run through the scripts.
    Debugging will get easier in Personas 3.
    Steve.

  • Is it possible to Trace(Debugging) JCO request from the RFC?

    hi abap gurus.
    I am calling the rfc using jco code.
    i want to trace the request, means When the jco code execute it call the rfc.i want to trace out the values coming from java program in my abap editor.
    Thanks for ur valuable replies
    lakshman.
    save a life by sending information.
    www.help2patients.wordpress.com.

    check the system calls, i mean calls stack , may be you get some hint there.
    I never checked it.check it once.
    I am surprised to see JCO questions in ABAP forum. anyway some part related to ABAP.

  • Driector 10.1 Mac: trace & debug VERY slow

    I am tracing and debugging a lingo script, with various
    variables etc, totalling around 2 MB of data.
    Breakpoints, debugging, stepping through scripts, etc, is
    VERY VERY slow. Up to 20-40 second wait per step or breakpoint (I
    guess for vars to format in the debugger window).
    Is Dir 11 any faster? I've been looking for a Real reason to
    upgrade...
    Thanks
    William

    1) I've had no problems with data or code for a couple of
    years now. I upgraded to v10.1 a year ago. I had to because v9 did
    not work in OSX 10.4.x
    2) This error in the data is of some new type. So my code is
    not handling the weird data correctly. Tracing is the best way, but
    way too slow.
    I have now isolated the problem; it was due to a new version
    of Filemaker Pro inserted a new "special" char in some fields. My
    code has been corrected now and runs fine in Dir 10.1.
    In Dir 11.0 there are HUNDREDS of new errors in all our Dir
    programs and projects.
    And Dir 11 is Fantastically SLOW ! Slloooooooow!
    Stupid Dir 11 - there's NO way I'm wasting time changing MANY
    programs and projects just to do Arrogant Adobe's work for them.
    Idiots. Didn't they test this stuff? How can they sell this carp?
    3) I have Javascript that already handles 3 times this much
    data, but the date is organized first into packets.
    4) Yes, we will eventually have to rewrite all 3,000 lines of
    code. And not just in this program, but in 4-5 other programs as
    well.
    We originally wrote these in Director due to the debugger and
    the fact that I am an expert in Lingo for over ten years.
    We'll stick with Dir 10.1 for a year or two, even if we have
    to use an old Mac that's never updated or whatever.
    Eventually, we'll have to ditch Adobe Director. Thank god we
    never really buried ourselves in that other Macromedia MESS, Flash.
    Macromedia & Adobe NEVER had any "authoring language"
    programmers with any real "long term, coherent" design skill, they
    are just hacky hacky hackers, forever adding new features with no
    concept of any users but themselves.
    What a mess.
    (Oh, and Batch processing in Photoshop is a laughable mess as
    well. Jeez.)

  • How to trace debug smartform?

    Hi
    how to debug debug smartform?

    HI manooj,
    Before posting any thred please search the thread.
    Seach by Debug Smart form u will get so amny threads.
    see the following link.
    Steps to debug smartfrom
    For debugging Smart Forms :
    1) Execute ur smartform -->> Gives Function Module
    2) Again Execute SmartForm(Function Module Screen).
    >> next screen shows.
    Execute and Debugging.

  • Debugging a program

    Okay I had to design this program and then figure out why when 18 is input it won't work... anybody have any ideas on how I could debug it or any ideas why it won't work?
    import java.io.*;
    import java.math.*;
    /* Author: xx                                    */
    /* ID: xx                                           */
    /* File Name: Trapezoid.java                                    */
    /* Due Date: xx                                          */
    /* Class: xx                           */
    /* Professor: xx                                     */
    /* Assignment: Lab 4                                            */
    /* Description: This program gives the area under a given arc.  */
    public class Trapezoid{
         public static void main (String [] args) throws IOException    {
              //declare the variables
              double delta, fx1, fx2, x1, x2, area, sum;
             int numberTrapezoid, i;
             BufferedReader in;
              //enable input and prompt the user to input how many trapezoids
            in = new BufferedReader(new InputStreamReader(System.in));
            System.out.println("How many trapezoids do you want to use?");
            numberTrapezoid = Integer.parseInt(in.readLine());
              delta = (1 / (double)numberTrapezoid);     
              x1 = 0;
              x2 = x1 + delta;
              sum = 0.0;
              //start the loop
              i = 1;
              while (i < (numberTrapezoid + 1)){
                   x1 = (x1 + delta);
                   x2 = (x2 + delta);
                   fx1 = Math.sqrt(1 - (x1 * x1));
                   fx2 = Math.sqrt(1 - (x2 * x2));
                   area = ((((fx2 - fx1) * delta) / 2) + (fx1 * delta));
                   sum = (sum + area);
                   i++;
              System.out.println(sum * 4);          
    }

    How does it not work? What's it supposed to do that it's not doing?
    Anyway, generally to debug you either step through it in a debugger, or print trace/debugging messages at important parts in the code.

  • Debug of PL/SQL stored procedure

    Hi!
    I am trying to debug a PL/SQL procedure in Oracle Apps. I noticed that the procedure makes calls to dbms_output.put_line to output debug lines.
    Is it possible to run the procedure through the concurrent manager and be able to view the debug lines? I have checked the program through sqlplus.
    Thanks
    CSB

    You could use an AX Trace feature, and make the trace optional, ie
    Encapsulate your program as following:
    PROCEDURE x (errbuf OUT VARCHAR2
    ,errcode OUT INTEGER)
    IS
    BEGIN
    ax_utility_pkg.init_trace('SRS_DBP','Procedure x');
    ax_utility_pkg.trace('debug message' ,1-100);
    ... your PL/SQL code include trace calls as above
    ax_utility_pkg.trace_off ('Procedure x');
    errcode := 0;
    errbuf := 'Procedure completed successfully';
    EXCEPTION
    WHEN OTHERS THEN
    ax_utility_pkg.trace_off ('Procedure x');
    errcode := 2;
    errbuf := 'Procedure failed';
    END;
    Then set the following profil options:
    AX:Debug Mode => Yes/No
    AX:Debug LogMode => Tracer/Logfile
    If Tracer, the trace will be printed
    in the logfile of the AX Tracer
    If Logfile, the trace will be printed
    in the logfile of your concurrent
    program.
    null

  • Debugging JAXB RI Unmarshalling

    Hello,
    I'm having some parsing issues with the Unmarshaller. If I have an input XML document that has an empty element where an xs:double should be, the Unmarshaller throws a NumberFormatException but the exception does not contain any useful information regarding what XML element was being parsed at the time of the error.
    When working with small XML docs this is ok as I can zero in on the problem quickly. However, for large XML docs the process of locating the value in error is quite time consuming.
    Is there a way to turn on trace/debug level debugging information in JAXB to help locate the problem in the XML doc?
    Thanks,
    Mark

    reading the jaxp api documentation a bit more closely shows that there is an unmarshall method that can be used to accept a character reader Reader via a decorator - the marshal(Source source) method

  • Enable trace

    Hi
    please suggest how to enable trace for a running concurrent request
    regards

    Srini Chavali wrote:
    One option is to use oradebug - pl see this MOS Doc for needed steps
    How to Enable SQL_TRACE for Another Session or in MTS Using Oradebug [ID 1058210.6]     
    When you enable this trace, it will only trace those statements that are executed after the trace is enabled. Statements previous to enabling the trace will not be included in the traceThis is to debug the database sessions but not the concurrent program itself. Moreover, it is not going to debug the statements which have already finished/completed.
    The best practice is to enable trace on this concurrent program and submit it again to get the complete trace/debug log.
    Re: enable tha trace
    Thanks,
    Hussein

Maybe you are looking for