diff --git a/mozilla/xpcom/doc/xpcom-code-faq.html b/mozilla/xpcom/doc/xpcom-code-faq.html index ee2b74fbd3a..2994b9b2f3e 100644 --- a/mozilla/xpcom/doc/xpcom-code-faq.html +++ b/mozilla/xpcom/doc/xpcom-code-faq.html @@ -2,7 +2,7 @@ - + XPCOM Code FAQ @@ -11,7 +11,7 @@

XPCOM Code FAQ

Suresh Duddi <dp@netscape.com> -
Last Modified: April 2 1999 +
Last Modified: May 25 2000


I am documenting things randomly as I am replying to people's questions. @@ -48,10 +48,14 @@ Vs ServiceManager ProgID Vs CLSID
  • -How to debug components ?
  • +How to set breakpoints +in component code + +
  • +Generating the XPCOM LOG +
  • -

    What are the Global Objects that XPCOM maintains

    @@ -235,8 +239,7 @@ ProgIDs (not implemented yet).
    ProgID is what Clients should use to CreateInstances. Clients should not even know about the CLSID unless they are hell bent on creating a particular -implementation of a component. -
      +implementation of a component. Component + + + Mac: Codewarrior
    Just open the appropriate .xSYM file in the debugger; the debugger will target the library when the application is run. - <Simon Fraser>
    + +Generating a log from xpcom: +
    XPCOM provides log output. To enable the logging: +
    [unix] +
    setenv NSPR_LOG_MODULES nsComponentManager:5 +
    setenv NSPR_LOG_FILE xpcom.log +

    [win] +
    set NSPR_LOG_MODULES=nsComponentManager:5 +
    set NSPR_LOG_FILE=xpcom.log

    +Start your application after setting the above environment variables. Debug +log from xpcom would be in the file xpcom.log
    + +


    XPCOM Log analysis +

    xpcom/doc/xpcom-log-analyze.sh +is a script that does analysis of the xpcom log and prints out useful statistics +in html format. Usage is: +
    xpcom-log-analyze.sh < xpcom.log > xpcom-log.html +
     
    +