Here are the list of things you can try.
1. Restart your Python kernel.
2. Re-enable the Debugger Feature
Go to your username (upper-right) โ Settings โ Developer โ Toggle "Python Notebook Interactive Debugger" off and back on
3. Restart cluster.
4. Confirm that your notebook is attached to a compatible cluster. The debugger requires a cluster with:
โข Databricks Runtime 13.3 LTS or above.
โข Access mode set to Dedicated (Single User) or No Isolation Shared. Shared access mode clusters are not supported for debugging.
5. You can also try alternate debugger like pdb.
import pdb
def my_function():
x = 10
pdb.set_trace() # This will always stop
y = x * 2
return y
my_function()