<?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: Procedure Execution Debugging in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaa-p/13834933#M4865776</link>
    <description>&lt;P&gt;Thanks. I was hoping to use the sa_stack_trace or STACK_TRACE to return Owner.ProcedureName as well as the passed in parameter values.  The plan was to call an internal debug procedure with the returned value(s) which would store in a table with whatever else was needed.  In this way the same line of code could be added to each procedure to store the debug information.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 17:12:42 GMT</pubDate>
    <dc:creator>JimDiaz</dc:creator>
    <dc:date>2023-06-01T17:12:42Z</dc:date>
    <item>
      <title>Procedure Execution Debugging</title>
      <link>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaq-p/13834930</link>
      <description>&lt;P&gt;SQL Anywhere 17.0.10.6160&lt;/P&gt;
&lt;P&gt;I'm interested in recording the execution of procedures and functions while debugging.  If possible I would also like to record the parameter values sent to the procedure or function.  Is there an automated method for doing this?&lt;/P&gt;
&lt;P&gt;Thanks
Jim&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 12:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaq-p/13834930</guid>
      <dc:creator>JimDiaz</dc:creator>
      <dc:date>2023-05-09T12:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure Execution Debugging</title>
      <link>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaa-p/13834931#M4865774</link>
      <description>&lt;P&gt;Not in the debugger but perhaps the request logging level procedures+hostvars could be used for this? See RequestLogging/RequestLogFile set using sa_server_option (or via the -zr/-zo command line settings).  The request log can be analyzed using sa_get_request_times  which creates the temporary tables SATMP_request_time and SATMP_request_hostvar.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 10:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaa-p/13834931#M4865774</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2023-05-10T10:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure Execution Debugging</title>
      <link>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaa-p/13834932#M4865775</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I'm interested in recording the execution of procedures and functions while debugging.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What exactly do you want to get recorded (besides the parameter values, as stated in the second question)?&lt;/P&gt;
&lt;P&gt;FWIW, you can use &lt;A href="https://dcx.sap.com/index.html#sqla170/en/html/3be51a926c5f10148fd9c9c9884dde68.html"&gt;MESSAGE statements with the DEBUG ONLY clause&lt;/A&gt; and then decide via the debug_messages option whether those MESSAGE statements are executed or not. (Note, it apparently is independent of running the SQL Debugger or not.) And you might use the buitin &lt;A href="https://dcx.sap.com/index.html#sqla170/en/html/81777c8f6ce21014bdaf977b02167984.html"&gt;sa_strack_trace()&lt;/A&gt; or &lt;A href="https://dcx.sap.com/index.html#sqla170/en/html/81fd67bc6ce2101497f0d65edc4451bd.html"&gt;STACK_TRACE()&lt;/A&gt; to get information about caller hierarchies and/or parameter values. – Obviously, this requires modifications to procedures and functions beforehand.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 11:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaa-p/13834932#M4865775</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2023-05-10T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure Execution Debugging</title>
      <link>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaa-p/13834933#M4865776</link>
      <description>&lt;P&gt;Thanks. I was hoping to use the sa_stack_trace or STACK_TRACE to return Owner.ProcedureName as well as the passed in parameter values.  The plan was to call an internal debug procedure with the returned value(s) which would store in a table with whatever else was needed.  In this way the same line of code could be added to each procedure to store the debug information.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 17:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/procedure-execution-debugging/qaa-p/13834933#M4865776</guid>
      <dc:creator>JimDiaz</dc:creator>
      <dc:date>2023-06-01T17:12:42Z</dc:date>
    </item>
  </channel>
</rss>

