-
1. Re: What is normal debugging cycle for addmenuitem?
Lev Ger Apr 18, 2012 8:58 PM (in response to FUBARinSFO)What I do when I am working on an Acrobat script that I am going to attach to a menu item is run the body of the script (without the part that attaches it to a menu item or a button) in Acrobat's debugger. Just go into acrobat and hit apple + J on a Mac (and probably something similar on a PC) and copy and paste your script into the main area of the debugger, select the whole script and hit the enter key (the one by the num pad not the regular enter key) and your script will run, if you get any errors they will be output below your code in the same window. Also if you want to log some part of your scrpt you can use "console.println(<<your stuff>>);
HTH
Leo
-
2. Re: What is normal debugging cycle for addmenuitem?
try67 Apr 18, 2012 11:08 PM (in response to Lev Ger)I do that as well. The problem with that is that the console has a higher trust-level than a document-level script, so you get some things running in the console, but then have to mess around with creating trusted functions so they would work in your final script.
-
3. Re: What is normal debugging cycle for addmenuitem?
FUBARinSFO Apr 19, 2012 1:01 AM (in response to try67)OK -- I'll try that as well. Seems pretty crude to me, but on the other hand I haven't taken the time to investigate using a proper debugging environment (assuming there is one).
Thanks to both of you.



