Can you list down some of the pdb commands for debugging python programs?



Can you list down some of the pdb commands for debugging python programs?..

Answer / Jatin Kumar

"pdb provides a number of useful commands to help with debugging. Here are some common ones:n- 'help': shows a list of available commands.n- 'list': shows the source code around the current line.n- 'step': execute one line of code and stop at the next one.n- 'next': execute the next line without stopping.n- 'breakpoint()': set a breakpoint at the current line."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How to clone or copy a list in python?

1 Answers  


You mentioned pypi in your previous answer. Can you elaborate?

1 Answers  


How to determine type of an object?

1 Answers  


Is python is intended oriented?

1 Answers  


How do you sort a dataframe in python?

1 Answers  


Explain the disadvantages of python

1 Answers  


How to find methods or attributes of an object?

1 Answers  


What are the different file processing modes supported by python?

1 Answers  


Do you know what are the optional statements that can be used inside a <try-except> block in python?

1 Answers  


Does Python support strongly for regular expressions?

1 Answers  


Give one example for multiple statements in single statement?

1 Answers  


What are tuples and relation?

1 Answers  


Categories