• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Not hitting break points for Indesign

Participant ,
Feb 15, 2017 Feb 15, 2017

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

TOPICS
Scripting

Views

534

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 28, 2017 Feb 28, 2017

Copy link to clipboard

Copied

Try adding  $.bp()   in the script.

Thanks Stefan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 28, 2017 Feb 28, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Mar 01, 2017 Mar 01, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Mar 01, 2017 Mar 01, 2017

Copy link to clipboard

Copied

LATEST

You are totally right Vamitul. My remark was also dealing with regular jsx scripts executed outside CEP projects.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines