<?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: Detect DEBUG Mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222443#M1911639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from the class approach suggested, you can also check for FMs in Function Group SDBG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking You All..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2015 22:00:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-08-20T22:00:12Z</dc:date>
    <item>
      <title>Detect DEBUG Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222440#M1911636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written a singleton class for measuring the runtime of different parts of our programs.&lt;/P&gt;&lt;P&gt;It gets timestamps before and after some routines, calculates the runtimes and logs the results in a DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is: if someone would debug these parts of coding, the calculated runtime would be by far way longer then the real runtime, since the program has to wait for the developer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now i would need a way to find out if the DEBUG mode is on, so i can avoid these wrong results to be loged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried using the structure 'ABDBG', using it like shown in the following piece of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;TABLES: abdbg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;IF abdbg-syrepid IS NOT INITIAL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " DEBUG mode is on !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style=": ; font-size: 12pt; font-family: courier new,courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this doesn't work for me because of 2 reasons:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- the "TABLES" declaration cannot be used in classes&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- even if i use this coding in a Test-Report, the structure 'ABDBG' is existent but INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can give me some ideas for solving this problem?&lt;/P&gt;&lt;P&gt;Thank you in advance for any hints.&lt;/P&gt;&lt;P&gt;With best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222440#M1911636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-20T10:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Detect DEBUG Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222441#M1911637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The breakpoints set in the program can be determined with the help of the class CL_ABAP_DEBUGGER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check whether the read methods are helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222441#M1911637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-20T10:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Detect DEBUG Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222442#M1911638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's initial because TABLES statement it's same as declare a work-area, but with table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to check this link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Snippets/reading+and+saving+break+points+programatically" title="http://wiki.scn.sap.com/wiki/display/Snippets/reading+and+saving+break+points+programatically"&gt;reading and saving break points programatically - Code Gallery - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222442#M1911638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-20T10:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Detect DEBUG Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222443#M1911639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from the class approach suggested, you can also check for FMs in Function Group SDBG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking You All..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 22:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222443#M1911639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-20T22:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Detect DEBUG Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222444#M1911640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roman,&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;I've been&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;reviewing&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;your case&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;here and thought&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;about the case&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of creating&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;events&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in this class,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;triggered, it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would interrupt&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the count.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Have you tried to use&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Warm regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Raphael Pacheco.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 01:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222444#M1911640</guid>
      <dc:creator>raphael_almeida</dc:creator>
      <dc:date>2015-08-21T01:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Detect DEBUG Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222445#M1911641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so far for your answers. I'll take a closer look on each hint in the next days!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 06:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222445#M1911641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-21T06:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Detect DEBUG Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222446#M1911642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try good old TH_GET_DEBUG_INFO (many system functions are available thru the FM of the TH* name range)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-debug-mode/m-p/11222446#M1911642</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-08-21T08:07:40Z</dc:date>
    </item>
  </channel>
</rss>

