Hi everyone,
I am very new to CS4 Photoshop Scripting. But I am now using ExtendScript Toolkit to script .jsx files and run them from the Toolkit.
But one thing annoys me: I can't get the IDE to display error and error information. How can I enable this? Currently the only indication of an error that I get is a small line of text (not even copyable) down on the status bar of the application, and a highlighted line showing where only one (1) error is.
Can anyone help me turn on this functionality? Or is there a better way to compile and run .jsx files for Photoshop in a different environment? Any advice is greatly appreciated.
Thanks.
How to display debugging in ExtendScript Toolkit
How to display debugging in ExtendScript Toolkit
JavaScript is not compiled, it is interpreted. ESTK can not display all the errors in a script at one time. It can only report any errors it finds when interpreting each statement.
I think you will find as you spend more time scripting that the error message in the status bar is enough. However you can wrap your code in a try/catch block and send the error details to the console or a file.
Code: Select alltry{
forceerror
}catch(e){
$.writeln('Error at line '+e.line+'; '+e);
}
I think you will find as you spend more time scripting that the error message in the status bar is enough. However you can wrap your code in a try/catch block and send the error details to the console or a file.
Code: Select alltry{
forceerror
}catch(e){
$.writeln('Error at line '+e.line+'; '+e);
}
How to display debugging in ExtendScript Toolkit
Thanks that works great! I can debug now.
Also, how do I mark that a post is solved?
Also, how do I mark that a post is solved?
How to display debugging in ExtendScript Toolkit
worldveil wrote:how do I mark that a post is solved?
That would require a phpBB mod that we have not installed. So I'm afraid you can't mark the post solved.
That would require a phpBB mod that we have not installed. So I'm afraid you can't mark the post solved.