<?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 pdb debugger on databricks in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/pdb-debugger-on-databricks/m-p/64037#M3131</link>
    <description>&lt;P&gt;I am new to databricks. and trying to debug my python application with variable-explore by following the instruction from:&amp;nbsp;&lt;A href="https://www.databricks.com/blog/new-debugging-features-databricks-notebooks-variable-explorer" target="_blank"&gt;https://www.databricks.com/blog/new-debugging-features-databricks-notebooks-variable-explorer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I added the "import pdb" in the first cell, then "pdb.set_trace()"&amp;nbsp; inside the functions I wanted to debug. After running all the cells,&amp;nbsp; the databricks seems stopped at the pdb.set_trace(), but I did not get the cell for ipdb prompt.&amp;nbsp; Also the list of variables does not updated ( the local variables did not show on the right side of panel).&amp;nbsp; &amp;nbsp;Is there something I missing here?&lt;/P&gt;&lt;P&gt;From another help page:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/_extras/notebooks/source/python-debugger.html," target="_blank"&gt;https://docs.databricks.com/en/_extras/notebooks/source/python-debugger.html,&lt;/A&gt;&amp;nbsp;just wonder if I need to set %debug or %pdb instead of %python to get ipdb prompt. But this page seems quite old, not sure it is still valid.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 22:41:25 GMT</pubDate>
    <dc:creator>johnp</dc:creator>
    <dc:date>2024-03-18T22:41:25Z</dc:date>
    <item>
      <title>pdb debugger on databricks</title>
      <link>https://community.databricks.com/t5/machine-learning/pdb-debugger-on-databricks/m-p/64037#M3131</link>
      <description>&lt;P&gt;I am new to databricks. and trying to debug my python application with variable-explore by following the instruction from:&amp;nbsp;&lt;A href="https://www.databricks.com/blog/new-debugging-features-databricks-notebooks-variable-explorer" target="_blank"&gt;https://www.databricks.com/blog/new-debugging-features-databricks-notebooks-variable-explorer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I added the "import pdb" in the first cell, then "pdb.set_trace()"&amp;nbsp; inside the functions I wanted to debug. After running all the cells,&amp;nbsp; the databricks seems stopped at the pdb.set_trace(), but I did not get the cell for ipdb prompt.&amp;nbsp; Also the list of variables does not updated ( the local variables did not show on the right side of panel).&amp;nbsp; &amp;nbsp;Is there something I missing here?&lt;/P&gt;&lt;P&gt;From another help page:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/_extras/notebooks/source/python-debugger.html," target="_blank"&gt;https://docs.databricks.com/en/_extras/notebooks/source/python-debugger.html,&lt;/A&gt;&amp;nbsp;just wonder if I need to set %debug or %pdb instead of %python to get ipdb prompt. But this page seems quite old, not sure it is still valid.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 22:41:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/pdb-debugger-on-databricks/m-p/64037#M3131</guid>
      <dc:creator>johnp</dc:creator>
      <dc:date>2024-03-18T22:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: pdb debugger on databricks</title>
      <link>https://community.databricks.com/t5/machine-learning/pdb-debugger-on-databricks/m-p/64445#M3147</link>
      <description>&lt;P&gt;I test with some simple applications, it works as you described.&amp;nbsp; However, the application I am debugging uses the pyspark structured streaming, which runs continuously. After inserting pdb.set_trace(), the application paused at the breakpoint, but the application continues to run for incoming stream data, and no ipdb prompt shows up.&amp;nbsp; How do I get the ipdb&amp;gt; prompt in this case?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2024 15:51:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/pdb-debugger-on-databricks/m-p/64445#M3147</guid>
      <dc:creator>johnp</dc:creator>
      <dc:date>2024-03-23T15:51:32Z</dc:date>
    </item>
  </channel>
</rss>

