Ann: TraceJS -- logs all JavaScript that Internet Explorer executes (no code change required)

Last post 10-17-2007 12:16 PM by ppychu. 3 replies.

Sort Posts:

  • Ann: TraceJS -- logs all JavaScript that Internet Explorer executes (no code change required)

    11-27-2006, 11:01 AM
    • Member
      142 point Member
    • dmehers
    • Member since 03-21-2006, 12:50 PM
    • Geneva, Switzerland
    • Posts 33

    I've written a small utility in C# which uses the Active Scripting Debugging API to log all JavaScript that Internet Explorer executes.  There is no need to instrument your code, since it hooks into IE at a pretty low level.

    The tool and the source are available for free: http://damianblog.com/2006/11/23/tracejs/

    It can be useful for understanding what  is going on inside the ASP.NET AJAX runtime, and also to help understand what is going on in your own code without having to step through in the debugger.

    If you do want to trace inside the ASP.NET AJAX runtime then you might want to have the ScriptManager return the ASP.NET AJAX Runtime JavaScript files from the file system instead of from the embedded resources ... I explain how to do that here: http://damianblog.com/2006/11/27/scriptmanager-scriptpath/

    Damian

    --
    http://damianblog.com/
  • Re: Ann: TraceJS -- logs all JavaScript that Internet Explorer executes (no code change required)

    11-28-2006, 2:49 AM
    • Member
      142 point Member
    • dmehers
    • Member since 03-21-2006, 12:50 PM
    • Geneva, Switzerland
    • Posts 33

    I'm getting some reports of people not being able to run this, getting an error:

    System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {0C0A3666-30C9-11D0-8F20-00805F2CD064} failed due to the following error: 80040154.

       at TraceJS.Form1.InitializeMachineDebugManager() in c:\Documents and Settings\nikhilko\Desktop\TraceJS\TraceJS\Form1.cs:line 73
    If you get this, please let me know.
     
    Thanks,
        Damian
    --
    http://damianblog.com/
  • Re: Ann: TraceJS -- logs all JavaScript that Internet Explorer executes (no code change required)

    11-28-2006, 7:02 AM
    • Member
      142 point Member
    • dmehers
    • Member since 03-21-2006, 12:50 PM
    • Geneva, Switzerland
    • Posts 33

    FWIW I've found the problem and updated the blog entry and associated software.  If you have not had VS 2003 installed before then there is a good chance you won't have the Active Scripting Debug API installed, which is why the above error occurred.  I've updated the posting and associated software to explain where it can be downloaded.

    --
    http://damianblog.com/
  • Re: Ann: TraceJS -- logs all JavaScript that Internet Explorer executes (no code change required)

    10-17-2007, 12:16 PM
    • Member
      4 point Member
    • ppychu
    • Member since 10-10-2007, 12:15 PM
    • Posts 2

    I downloaded the zip and unzip.

    I double click the tracejs.exe file -- nothing happens.

    I executed it at a DOS prompt -- nothing happens.

    But I do see the process in task manager.

    Should there be  a GUI or somehing that will come up when I run it??

    Not sure how to use this TraceJS

    Can someone please kindly help?

    Thanks

Page 1 of 1 (4 items)