Troubleshoot errors in JSX
This thing have been bugging me since I started working on my plugin.
How can I see what is the problem when JSX fails to load properly? I can kind of see that there is a problem because my functions stop working properly, but there are no error messages.
If I check CEP8-PHXS.log file it says:
ERROR AsyncEvalRawScript: Failed to evaluate script for scripting engine <..._Engine_Id> with error code 38
Other log files are empty or non-helpful.
What is code 38?
I know there should be some kind of syntax error in my script, which line does it fail on?
Running all my scripts from regular JS, I have function:
```
var logger = function(message) {
if (console) {
console.log(message);
}
};
function runCsScript(script) {
if (csInterface && csInterface.evalScript && window.__adobe_cep__) {
csInterface.evalScript(script, logger);
} else {
if (console) { console.log("CSInterface.evalScript " + script); }
}
}
```
So basically I have some debugging, either directly to console when working in JS, or via logger – it would output whatever JSX call would return.
In case of error I most likely get "EvalScript error", with no details on what was the problem.
So the question is – how can I see JSX errors to fix them?
