<?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>Question Re: Cannot start remote debugger for SAP Machine 17 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805132#M4808224</link>
    <description>&lt;P&gt;&lt;SUP&gt;Hi David,&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;SUP&gt;That worked! Thank you very much!&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;SUP&gt;Best regards,&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;SUP&gt;Kevin&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2023 07:15:31 GMT</pubDate>
    <dc:creator>kevsar</dc:creator>
    <dc:date>2023-07-24T07:15:31Z</dc:date>
    <item>
      <title>Cannot start remote debugger for SAP Machine 17</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaq-p/12805128</link>
      <description>&lt;P&gt;I am trying to setup a remote debugger for a SAP Cloud application using IntelliJ and SAP Machine 17.&lt;/P&gt;
  &lt;P&gt;I followed the instructions shown in the two articles below:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;&lt;A href="https://sap.github.io/cloud-sdk/docs/java/frequently-asked-questions#how-do-i-remotely-debug-my-app-on-sap-btp-cloud-foundry"&gt;Frequently Asked Questions | SAP Cloud SDK&lt;/A&gt;&lt;/LI&gt;
   &lt;LI&gt;&lt;A href="https://blogs.sap.com/2019/07/24/remote-debugging-on-cloud-foundry/"&gt;Remote Debugging on Cloud Foundry | SAP Blogs&lt;/A&gt; &lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;In particular I made sure to use these commands:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;cf set-env application JBP_CONFIG_DEBUG "{enabled: true}"&lt;/LI&gt;
   &lt;LI&gt;cf restage &amp;lt;application_name&amp;gt;&lt;/LI&gt;
   &lt;LI&gt;cf ssh -N -T -L 8000:localhost:8000 &amp;lt;application_name&amp;gt;&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;When I attempt to start the debugger I get the these errors&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;IntelliJ Error → Unable to open debugger port (localhost:8000): java.net.SocketException "Connection reset"&lt;/LI&gt;
   &lt;LI&gt;SSH server error → connect to localhost:8000 failed: ssh: rejected: connect failed (dial tcp 127.0.0.1:8000: connect: connection refused)&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;Kind regards,&lt;/P&gt;
  &lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 13:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaq-p/12805128</guid>
      <dc:creator>kevsar</dc:creator>
      <dc:date>2023-07-21T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot start remote debugger for SAP Machine 17</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805129#M4808221</link>
      <description>&lt;P&gt;The error&lt;/P&gt;&lt;P&gt;&amp;gt; SSH server error → connect to localhost:8000 failed: ssh: rejected: connect failed (dial tcp 127.0.0.1:8000: connect: connection refused)&lt;/P&gt;&lt;P&gt;seems to indicate that binding the remote port to your local port (via the cf ssh) command didn't succeed.&lt;BR /&gt;Are there any logs you can share from the `cf ssh` command?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805129#M4808221</guid>
      <dc:creator>jschneider</dc:creator>
      <dc:date>2023-07-21T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot start remote debugger for SAP Machine 17</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805130#M4808222</link>
      <description>&lt;P&gt;Unfortunately, the command "cf ssh" doesn't seem to output any log&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805130#M4808222</guid>
      <dc:creator>kevsar</dc:creator>
      <dc:date>2023-07-21T14:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot start remote debugger for SAP Machine 17</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805131#M4808223</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;I ran into the same issue as you.&lt;/P&gt;&lt;P&gt;Do the following instead:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;$ cf set-env &amp;lt;application_name&amp;gt; JBP_CONFIG_JAVA_OPTS '[java_opts: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8000"]'
$ cf restage &amp;lt;application_name&amp;gt;
$ cf ssh &amp;lt;application_name&amp;gt; -N -T -L 8000:localhost:8000&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That worked for me.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 15:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805131#M4808223</guid>
      <dc:creator>davidlam</dc:creator>
      <dc:date>2023-07-21T15:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot start remote debugger for SAP Machine 17</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805132#M4808224</link>
      <description>&lt;P&gt;&lt;SUP&gt;Hi David,&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;SUP&gt;That worked! Thank you very much!&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;SUP&gt;Best regards,&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;SUP&gt;Kevin&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-start-remote-debugger-for-sap-machine-17/qaa-p/12805132#M4808224</guid>
      <dc:creator>kevsar</dc:creator>
      <dc:date>2023-07-24T07:15:31Z</dc:date>
    </item>
  </channel>
</rss>

