Photoshop CS - how to start Javascript Debugger ?

Discussion in 'Photoshop' started by Hannes F., Jul 26, 2006.

  1. Hannes F.

    Hannes F. Guest

    Hi folks,

    I wonder how i can open the javascript debugger, which is included in
    'Photoshop CS'. Does anybody know ?

    Thx,

    Hannes F.
     
    Hannes F., Jul 26, 2006
    #1
    1. Advertisements

  2. Hannes F.

    Mike Russell Guest

    Look for the scripting and javascript pdf files installed with Photoshop on
    your system.

    Here's one web page, of many, that discusses it:
    http://www.lodgephoto.com/articles/pshop_scripting.htm
     
    Mike Russell, Jul 26, 2006
    #2
    1. Advertisements

  3. Hannes F.

    Hannes F. Guest

    Hi,

    thankx.
    I already managed it out .
    For all who are interested:
    * To make the debugger appear at the start of the javascript program,
    put a '$.level=2;' line at the start of the javascript file.
    * Or at a line, where you want the debugger to appear, put a
    'debugger;' command into the line.
    * Although there is a '//@include' command, i would put all source code
    into one file,
    as the debugger currently has problems with tracing to a function in
    another file (there is a '//@show include;' command, but it makes some
    troubles at my program..)
    * Write a generic 'Object.toString()' method to inspect objects at the
    command line.
    * Don't put a 'debugger;' command into window-callback functions.
    * Watch out for the 'ScriptListener' - very useful tool.
    * There is a tool for generating windows resource strings - see
    http://www.jkozniewski.com/tools/csuib.html
     
    Hannes F., Jul 27, 2006
    #3
  4. Hannes F.

    bodich

    Joined:
    Mar 9, 2017
    Messages:
    2
    Likes Received:
    0
    Hi. Can you please give me a link on tool for generating windows resource strings? That one is not working, can't find it in google. Thank you!

    PS: Try to use Convert Actions File script instead of ScriptListener. It generates much easier to understand and shorter code based on included library. Just include that library once in your jsx and use generated code (remove linebreaks to make it short).

     
    bodich, Mar 9, 2017
    #4
  5. Hannes F.

    bodich

    Joined:
    Mar 9, 2017
    Messages:
    2
    Likes Received:
    0
    Hello. That link does not work anymore. Do you know where I can learn how to start debugger in Photoshop now? I am doing Photoshop Panels sometimes. Thank you.

     
    bodich, Mar 9, 2017
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.