Re: Can't get the xpcom service with do_GetService

2013-07-10 Thread Gijs Kruitbosch
On 29/05/13 08:22 , Hao Dong wrote: I try to use the following code to get the the jsdIDebuggerService, but it failed nsresult rv; const char jsdServiceCtrID[] = @mozilla.org/js/jsd/debugger-service;1; nsCOMPtr jsds = do_GetService(jsdServiceCtrID, rv); who can help me solve

Re: Can't get the xpcom service with do_GetService

2013-07-10 Thread Neil
Gijs Kruitbosch wrote: Don't use the old JSD1 debugger service anymore. It has been replaced by JSD2. Do you mean replaced in the sense of here's how to replace what you were doing in JSD1 or in the sense of JSD2 is cool! Let's drop JSD1? -- Warning: May contain traces of nuts.

Re: Can't get the xpcom service with do_GetService

2013-07-10 Thread Gijs Kruitbosch
On 29/05/13 10:50 , Neil wrote: Gijs Kruitbosch wrote: Don't use the old JSD1 debugger service anymore. It has been replaced by JSD2. Do you mean replaced in the sense of here's how to replace what you were doing in JSD1 or in the sense of JSD2 is cool! Let's drop JSD1? The latter.

Can't get the xpcom service with do_GetService

2013-07-10 Thread Hao Dong
I try to use the following code to get the the jsdIDebuggerService, but it failed nsresult rv; const char jsdServiceCtrID[] = @mozilla.org/js/jsd/debugger-service;1; nsCOMPtr jsds = do_GetService(jsdServiceCtrID, rv); who can help me solve it?