Unwanted Gapdebug-Additions in my xhtml

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of q244101707 q244101707 1 week, 4 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #503681 Reply
    Profile photo of Holger Linge
    Holger Linge
    Participant

    Hi

    Running myEclipse 2016 CI 7

    I just checked out one of my projects, deployed, and getting warnings about invalid xhtml. I found these strange additions, only in the deployed/filtered code:

    <script>”undefined”==typeof CODE_LIVE&&(!function(e){var t={nonSecure:”8123″,secure:”8124″},c={nonSecure:”http://”,secure:”https://”},r={nonSecure:”127.0.0.1″,secure:”gapdebug.local.genuitec.com”},n=”https:”===window.location.protocol?”secure”:”nonSecure”;script=e.createElement(“script”),script.type=”text/javascript”,script.async=!0,script.src=c[n]+r[n]+”:”+t[n]+”/codelive-assets/bundle.js”,e.getElementsByTagName(“head”)[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>

    and

    data-genuitec-lp-enabled=”false” data-genuitec-file-id=”wc1-96″ data-genuitec-path=”/kaloform-webapp/src/main/webapp/templates/common.xhtml”

    WTF

    I don’t have gapdebug installed, so why’s that stuff generated into my code?

    Thanks
    Holger

    #503701 Reply
    Profile photo of support-swapna
    support-swapna
    Moderator

    Holger,

    The script gets injected into the deployed files like JSP,HTML, XHTML,CSS for use by CodeLive to enhance the deployed files and to be able to enable Live Preview feature for those files. The script is only generated when the CodeLive is enabled on the server/deployment.

    The reference to http://gapdebug.local.genuitec.com/ is a service we use for websocket and is not running the Gap Debug tooling (mobile app debugger). It looks like we have reused the name gapdebug for some certificates and is no way related to the Gap Debug tool.

    You can turn off CodeLive from the Servers view to stop injecting the script into your files during deployment. Turning off CodeLive will trigger a new deployment and the scripts will no longer be injected.

    Please refer to this tutorial for more information about CodeLive : https://www.genuitec.com/products/webclipse/learning-center/using-live-preview/

    For instructions on turning the CodeLive on/off, please refer to section ‘1.1 Turning CodeLive On/Off’ in the above tutorial.

    If you are still seeing issues with XHTML files even after turning off CodeLive, then please let us know what exact errors are being reported for those files to help us investigate further.

    Apologies for inconvenience caused. Please let us know how it works for you.

    –Swapna
    MyEclipse Support

    #530388 Reply
    Profile photo of q244101707
    q244101707
    Participant

    Your answer is right. Thanks Swapna.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Unwanted Gapdebug-Additions in my xhtml