cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

 Dear Community,I want to understand from you all - How do you debug your codes when using Databricks? Have you tried the Variable Explorer of Databr...

Anonymous
Not applicable

Discussions 

Dear Community,

I want to understand from you all - How do you debug your codes when using Databricks?

Have you tried the Variable Explorer of Databricks? This allows the users to view at-a-glance all the variables defined in their notebooks, inspect and explore DataFrames in one click, and interactively debug Python code with pdb.

Have you also Debugged your code and notebook by using Visual Studio Code?? Now there is a new feature added for interactive debugging and local Jupyter (ipynb) notebook development using this extension.

4 REPLIES 4

-werners-
Esteemed Contributor III

I debug using notebooks.

As we develop in scala there is no other way.

Anonymous
Not applicable

Okay, good to know. Thats great that you are using scala.

etsyal1e2r3
Honored Contributor

I just create code in notebooks that allow me to check outputs at different steps. These methods usually include print statements or .display() of dataframes. If youre working with lots of data the .show(truncate=100,vertical=True) may help you. I have seen the variable view but that's never helped me more than programmatic methods and then clean up later. Its just faster that way. In addition, add comments and break up cell sections with markup cells using the %md magic command. Hope that helps!

Anonymous
Not applicable

Thats a wonderful suggestion that you provided to everyone in the Community.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group