Page 1 of 1

Can you trace surrogates?

Posted: Tue Mar 04, 2014 7:40 pm
by skkukuk
Is there some way to turn on a trace so that I can see if/when surrogates are coming into play?

If there should be something in the console log already when a surrogate comes into play, either I am not seeing it, or they are not running when I expect them to.

Also, is there a way to refresh default surrogates - or does that happen automatically when I get upgraded to a new version?

Thanks!

Re: Can you trace surrogates?

Posted: Tue Mar 04, 2014 9:17 pm
by Giorgio Maone
To trace the behavior of a certain surrogate, you can insert your own console.log() statements in the relevant replacement entries.
I'm not sure about what you mean by "refresh", but if you don't modify the default values they get updated automatically if they change across versions.
If you did modify them, just use the "Reset" command in about:config.

Re: Can you trace surrogates?

Posted: Fri Mar 07, 2014 12:54 am
by skkukuk
Trace was probably not the best choice of words. I was wondering if there was some way to tell when a surrogate was being used in a log somewhere, but your answer solves the problem either way, and I feel a little foolish for not thinking of it myself. Using console.log() works great.

Thanks!!