jsdService *jsds = jsdService::GetService();
nsCOMPtr<jsdIDebuggerService> jsds = do_GetService(jsdServiceCtrID, &rv);
jsdASObserver::Observe (nsISupports *aSubject, const char *aTopic,                        const PRUnichar *aData){    nsresult rv;    jsdService *jsds = jsdService::GetService();    PRBool on;    rv = jsds->GetIsOn(&on);    if (NS_FAILED(rv) || on)        return rv;        nsCOMPtr<nsIJSRuntimeService> rts = do_GetService(NS_JSRT_CTRID, &rv);    if (NS_FAILED(rv))        return rv;        JSRuntime *rt;    rts->GetRuntime (&rt);    if (NS_FAILED(rv))        return rv;    rv = jsds->OnForRuntime(rt);        return rv;}