<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Back-end javascript debugger in docker environment in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80479#M24898</link>
    <description>&lt;P&gt;The backend JavaScript debugger simply cannot work in a Docker environment, or any environment where the process runs without an attached and accessible screen device. E.g. this has always been a limitation on headless servers, way before Docker was even used in the Alfresco environment. There is no workaround for this, no solution to find - the debugger itself (a component of the Rhino library) is simply not built for that.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 16:19:50 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2020-04-20T16:19:50Z</dc:date>
    <item>
      <title>Back-end javascript debugger in docker environment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80477#M24896</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;When I try to activate backend javascript debugger in a dockerized Alfresco environment, it throws a 500 internal server error stating:&lt;/P&gt;&lt;P&gt;No X11 DISPLAY variable was set, but this program performed an operation which requires it.&lt;/P&gt;&lt;P&gt;Has anybody found a way to get it to work? I tried display redirect with no luck. I'm currently trying from my local machine, but I'd like to find a solution that can be applied when installed on a remote server too.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 11:49:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80477#M24896</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2019-11-23T11:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Back-end javascript debugger in docker environment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80478#M24897</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/77972"&gt;@narkuss&lt;/A&gt;&amp;nbsp;did you find a solution to this problem? Or another way to debug JavaScript?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:59:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80478#M24897</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-04-20T15:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Back-end javascript debugger in docker environment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80479#M24898</link>
      <description>&lt;P&gt;The backend JavaScript debugger simply cannot work in a Docker environment, or any environment where the process runs without an attached and accessible screen device. E.g. this has always been a limitation on headless servers, way before Docker was even used in the Alfresco environment. There is no workaround for this, no solution to find - the debugger itself (a component of the Rhino library) is simply not built for that.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 16:19:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80479#M24898</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-04-20T16:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Back-end javascript debugger in docker environment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80480#M24899</link>
      <description>&lt;P&gt;Aaargh, that was exactly the answer I was expecting to not hear from someone.&lt;/P&gt;&lt;P&gt;Answering the original question, no, I didn't find a way to make it work. I tried it with screen redirection from docker, as stated in some posts; installing some dependencies, but I wasn't able to make it work.&lt;/P&gt;&lt;P&gt;I really was expecting some CentOS / Docker expert to give us a magical answer but tonight I've lost any hope.&lt;/P&gt;&lt;P&gt;Then, there's no way to debug server-side javascript right now?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 21:05:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80480#M24899</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2020-04-20T21:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Back-end javascript debugger in docker environment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80481#M24900</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp;for the reply. I guess the old good printing method is the only option left.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sadly, there is no way to "hot reload" JavaScript just like Java files, am right? (constant server restarts are really frustrating)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 23:36:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80481#M24900</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-04-21T23:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Back-end javascript debugger in docker environment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80482#M24901</link>
      <description>&lt;P&gt;If you are developing a web script you can try "Refresh Webscripts" from /alfresco/service/index. If the files have changed on disk they should be reloaded.&lt;/P&gt;

&lt;P&gt;Way back in the day the Alfresco SDK would override the RhinoScriptProcessor bean and disable the caching. I have not tested this in years so I cannot verify if this will work, however it might point you in the right direction.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 09:33:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80482#M24901</guid>
      <dc:creator>ohej</dc:creator>
      <dc:date>2020-04-22T09:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Back-end javascript debugger in docker environment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80483#M24902</link>
      <description>&lt;P&gt;Here's the override bean:&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/alfresco-sdk-aggregator-2.2.0/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-sdk/blob/alfresco-sdk-aggregator-2.2.0/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 09:34:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-end-javascript-debugger-in-docker-environment/m-p/80483#M24902</guid>
      <dc:creator>ohej</dc:creator>
      <dc:date>2020-04-22T09:34:16Z</dc:date>
    </item>
  </channel>
</rss>

