<?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: Python Debugger won't stop in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123891#M4142</link>
    <description>&lt;P&gt;Thanks for the tips! This is a new cluster with DB rutime 16.4 LTS, access mode is "Dedicated". I have stopped and restarted the cluster several times and the same behavior persists. Does restarting the cluster not restart the Python kernel? If not then I need to figure out restarting the kernel. I also tried turning off and back on the debugger feature. It still won't stop at a breakpoint.&lt;/P&gt;&lt;P&gt;Does this really work for other people??? Or is the script debugger in the workspace a beta feature?&lt;/P&gt;&lt;P&gt;I appreciate the pdb suggestion, but I'm more likely to start doing my development locally in an full IDE with a real debugger that works (even though that would enatil setting up Spark locally which will take some effort)&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2025 13:38:34 GMT</pubDate>
    <dc:creator>carl24k</dc:creator>
    <dc:date>2025-07-03T13:38:34Z</dc:date>
    <item>
      <title>Python Debugger won't stop</title>
      <link>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123556#M4139</link>
      <description>&lt;P&gt;I'm trying to use the debugger on python scripts that I'm running in my databricks workspace. The first few times i used it, it worked and stopped at my breakpoints. Since then, it just won't stop. I'm sure they are valid lines for breakpoints, but it just won't stop. Is there any trick to getting the debugger to work?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Carl&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 22:28:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123556#M4139</guid>
      <dc:creator>carl24k</dc:creator>
      <dc:date>2025-07-01T22:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python Debugger won't stop</title>
      <link>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123557#M4140</link>
      <description>&lt;P&gt;Are you able to share any of the detail of the code you are running (and where you are applying breakpoints)?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 22:39:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123557#M4140</guid>
      <dc:creator>TheOC</dc:creator>
      <dc:date>2025-07-01T22:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python Debugger won't stop</title>
      <link>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123564#M4141</link>
      <description>&lt;P&gt;Here are the list of things you can try.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;Restart your Python kernel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. &lt;/SPAN&gt;Re-enable the Debugger Feature&lt;/P&gt;&lt;P class=""&gt;Go to your username (upper-right) → Settings → Developer → Toggle "Python Notebook Interactive Debugger" off and back on&lt;/P&gt;&lt;P class=""&gt;3. Restart cluster.&lt;/P&gt;&lt;P class=""&gt;4.&amp;nbsp;&lt;SPAN&gt;Confirm that your notebook is attached to a compatible cluster. The debugger requires a cluster with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;•&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Databricks Runtime 13.3 LTS or above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;•&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Access mode set to Dedicated (Single User) or No Isolation Shared. Shared access mode clusters are not supported for debugging.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. You can also try alternate debugger like pdb.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import pdb

def my_function():
    x = 10
    pdb.set_trace()  # This will always stop
    y = x * 2
    return y

my_function()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 00:40:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123564#M4141</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-07-02T00:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python Debugger won't stop</title>
      <link>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123891#M4142</link>
      <description>&lt;P&gt;Thanks for the tips! This is a new cluster with DB rutime 16.4 LTS, access mode is "Dedicated". I have stopped and restarted the cluster several times and the same behavior persists. Does restarting the cluster not restart the Python kernel? If not then I need to figure out restarting the kernel. I also tried turning off and back on the debugger feature. It still won't stop at a breakpoint.&lt;/P&gt;&lt;P&gt;Does this really work for other people??? Or is the script debugger in the workspace a beta feature?&lt;/P&gt;&lt;P&gt;I appreciate the pdb suggestion, but I'm more likely to start doing my development locally in an full IDE with a real debugger that works (even though that would enatil setting up Spark locally which will take some effort)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 13:38:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123891#M4142</guid>
      <dc:creator>carl24k</dc:creator>
      <dc:date>2025-07-03T13:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python Debugger won't stop</title>
      <link>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123896#M4143</link>
      <description>&lt;P&gt;Agree local development is always good. I have been using databricks connect lately. I like this a lot.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-connect/python/" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/databricks-connect/python/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 13:55:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123896#M4143</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-07-03T13:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python Debugger won't stop</title>
      <link>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123899#M4144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/36040"&gt;@carl24k&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Do you try to debug code from external files or modules? Is it possible to share with us a code that you try to debug?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 14:06:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/python-debugger-won-t-stop/m-p/123899#M4144</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-03T14:06:00Z</dc:date>
    </item>
  </channel>
</rss>

