1 Reply Latest reply on Dec 14, 2012 12:53 PM by JoarBolstad

    Unable to debug javascript

    JoarBolstad

      I'm trying to debug a illustrator javascript file by setting breakpoints at critical points in my code. I've included the line

      $.level = 2; // Supposedly full debug mode
      

      as the first line in my script. Now, if I hit a runtime error, the ExtendScript Toolkit is brought to front and the script is displayed at the problematic line. In other words, I know that setting the level does have some effect (not setting it at all gives no feedback - the script silently stops execution).

       

      However, the breakpoints in the code are never triggered, no matter if I set level to 0, 1 or 2. How can I get the breakpoints to work? Thanks!