Copy link to clipboard
Copied
I'm trying to debug by CEP panel script. This is the launch.json file:
{
"version": "0.2.0",
"configurations": [
{
"type": "extendscript-debug",
"request": "launch",
"name": "Debug in PPro",
"program": "${workspaceFolder}/jsx/PPRO/Premiere.jsx",
"stopOnEntry": false,
"trace": true,
"logFile" : "/Users/phongvu/Desktop/PProPanel_Log.txt",
"selectTargetColor": "blue"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 7777,
"webRoot": "${workspaceRoot}"
}
]
}
The debugger stops immediately after the start. This is the debug console:
{"0":"<trace>[1654018825775] prepareSession Target connected. Starting session.</trace>"}
[1654018825775] prepareSession Target connected. Starting session.
{"0":"<trace>[1654018826006] startSession Info: Execution finished.Result: [object Object]</trace>"}
[1654018826006] startSession Info: Execution finished.Result: [object Object]
Session Complete
Sending command 'stop'
My script is not working and I am really stuck. Please help
Thanks Bruce, it's working now. I think sth like syntax error make the code breaks before run
Copy link to clipboard
Copied
Are you able to debug the ExtendScript code, in a VSCode project entirely unrelated to CEP?
Copy link to clipboard
Copied
Yes I can debug the Premiere.jsx alone
Copy link to clipboard
Copied
Great!
Next question: If you set breakpoints in PProPanel's JavaScript code (either in ext.js or index.html) then hit the 'refresh panel' button in PProPanel, do you hit breakpoints?
Copy link to clipboard
Copied
Thanks Bruce, it's working now. I think sth like syntax error make the code breaks before run