I'm sure I'm going to say, "Doh," when I get the answer, but here's the question:
I'm trying to debug the TOC javascript in the charms.js file. consoleLog is not writing to the console, EXCEPT for my one test:
The toc function has several lines that SHOULD be printed to the console, such as:
But these do not write to the console. Only "hey there" appears in the terminal.
I have also put some test writes to the console inside function toc() and function toc_postlayout(toc_args), but they don't appear in the console.
And, yes, the TOC is being written out just fine, so function toc() and function toc_postlayout(toc_args) must be running. I get no errors.
This used to work before. I've seen it! But now...
BTW, another related question: what I'd really like to see is the HTML code rendered by Prince before it's converted to PDF. Using
I'm trying to debug the TOC javascript in the charms.js file. consoleLog is not writing to the console, EXCEPT for my one test:
consoleLog("hey there");
which I have placed outside of function toc().The toc function has several lines that SHOULD be printed to the console, such as:
consoleLog("TEXT: ", str);
But these do not write to the console. Only "hey there" appears in the terminal.
I have also put some test writes to the console inside function toc() and function toc_postlayout(toc_args), but they don't appear in the console.
And, yes, the TOC is being written out just fine, so function toc() and function toc_postlayout(toc_args) must be running. I get no errors.
This used to work before. I've seen it! But now...
BTW, another related question: what I'd really like to see is the HTML code rendered by Prince before it's converted to PDF. Using
consoleLog("TEXT: ", str);
is, so far, the best that I can do.
Edited by fallguy