Skip to main content
anylizerexe2210
Participant
May 27, 2023
Question

Debugging Host-Side in the Adobe CEP

  • May 27, 2023
  • 2 replies
  • 507 views

Hi

i am trying to debug the "host-side" extendscript for a panel i made , i've manage to debug the front-side and debug specific jsx file using VS with "ExtendScript Debugger" the problem is that i need to debug somthing that goes from the front-side js (an array) to the host side using the .evalScript from the csInterface library :

 

csInterface.evalScript(`exportFile("${myJSON}")`);

 

 is there any way to debug the host side for the errors ? 

i tried adding alert() inside the jsx , it works only if i send string, so i tried convert the array into a long string but still not working, only works if i take form example one element from the array and send him

 

those the evalScript , accept only strings ? meaning i can only pass string from the front to the host ?

 

This topic has been closed for replies.

2 replies

John T Smith
Community Expert
Community Expert
May 27, 2023

If you are asking about a part of Adobe Experience Manager you need to go to https://experienceleaguecommunities.adobe.com/

Community Expert
May 27, 2023

You could convert your objects into string using JSON.stringify and then pass it on to JSX. In JSX you would have to add a JSON library to parse the string back to object.

-Manan

-Manan