• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

"Debug in PPro" Debugger stops immediately

Explorer ,
May 31, 2022 May 31, 2022

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

TOPICS
SDK

Views

180

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 02, 2022 Jun 02, 2022

Thanks Bruce, it's working now. I think sth like syntax error make the code breaks before run

Votes

Translate

Translate
Adobe Employee ,
May 31, 2022 May 31, 2022

Copy link to clipboard

Copied

Are you able to debug the ExtendScript code, in a VSCode project entirely unrelated to CEP?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 01, 2022 Jun 01, 2022

Copy link to clipboard

Copied

Yes I can debug the Premiere.jsx alone

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 01, 2022 Jun 01, 2022

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 02, 2022 Jun 02, 2022

Copy link to clipboard

Copied

LATEST

Thanks Bruce, it's working now. I think sth like syntax error make the code breaks before run

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines