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 it?
I try not to do what I'm about to do (not answer your question), but in
this case I feel very strongly compelled: Don't use the old JSD1
debugger service anymore. It is very problematic from a performance
perspective, and has been replaced by JSD2. I don't know up until what
point the old API will continue to be supported, but I dearly hope that
at it will in fact disappear in the future. More info on the new API is
here:
https://wiki.mozilla.org/Debugger
And no, this API is not available from C++, as far as I can tell.
What problem are you trying to solve?
~ Gijs
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform