Copy link to clipboard
Copied
Hi All,
We have been working with our HTML5 panel for Premiere pro for long time.
Now we are working with Indesign,
Although we are able to get the Indesgin objects in data browser in Extendscript tool,
When we try to debug the jsx files in the extendscript tool, the break points are not hitting,
Also when we add new changes into the jsx file and run the script from extendscript the new changes are not reflecting in the panel.
Can someone suggest a solution for this problem?
Working environment
Indesign 2017.0
Extendscript 4.5.5
in Windows 7
Thanks and Regards,
Anoop NR
Copy link to clipboard
Copied
Try adding $.bp() in the script.
Thanks Stefan
Copy link to clipboard
Copied
That may not work depending on the code intrications and closures.
$.bp() works fine with first level function but not once included in objects methods nor using constructors. I think it's a question of scopes.
You may also use throw
I tend to use a log library of my own to keep tracks of whatever happens in my code. It just outputs to a text file.
A simpler implementation could be:
function log(msg) {
var f = File ( Folder.desktop+"/myScript.log" );
f.open('a');
f.writeln ( msg );
f.close();
}
FWIW
Loic
www.ozalto.com
Copy link to clipboard
Copied
When the jsx is called from a CEP panel some of the debugging functionality is disabled. This includes $.bp(), $.write() and $.writeln().
Just test the jsx code separately from ESTK.
Copy link to clipboard
Copied
You are totally right Vamitul. My remark was also dealing with regular jsx scripts executed outside CEP projects.