Message Board for Rorohiko Workflow Resources
https://www.rorohiko.com/cgi-bin/yabb2/YaBB.pl
General Category >> General Board >> ESTK breakpoints - CS3, APID 1.0.43, win/osx
https://www.rorohiko.com/cgi-bin/yabb2/YaBB.pl?num=1234126323

Message started by weller on 02/09/09 at 08:52:03

Title: ESTK breakpoints - CS3, APID 1.0.43, win/osx
Post by weller on 02/09/09 at 08:52:03
How to stop a script fired via APID and explore it in ESTK?

I tried to insert:

[code]$.bp(true);[/code]

but it doesn't seem to work. Is there anything else I can do?

Thanks for help
weller

Title: Re: ESTK breakpoints - CS3, APID 1.0.43, win/osx
Post by Kris Coppieters on 02/09/09 at 20:16:00
Hi Weller,

This does not always work well for reasons unbeknownst to me, but it always works after a few tries with some fiddling in-between, if you know what I mean.

The trick is to use the APIDTemplate, and create a 'compilation document' for your plug-in (set up the proper event list etc... for the proxy frame).

In the resulting InDesign file, click the script proxy frame (to select it) and bring up the Active Page Item Developer palette. Click the 'Use Debugger' checkbox, and then click in the pasteboard area to make it 'take'.

Add 'debugger' statements to your script where you want to break, eg:

...
x = 1;
debugger;
alert(x);
...

Then click the top 'compilation frame' to compile a debug version; alternatively, you can cause the necessary events to occur from the 'compilation document' and get the debugger to kick in. I tend to favour the second approach (i.e. not create an .spln but debug the stuff from the compilation document with some test content added to it).

You can also exercise the debug-.spln file - the debugger should come up. You might need to hit the 'Run' button to make it run through to your debugger; statement.

It's not always easy to make it work, depending on what you're doing - the debugger sometimes pops up an inopportune times.

Message Board for Rorohiko Workflow Resources » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.