What is use of debug other than seeing code order

I have understood how code is implementing itself line by line and we can see how is it implementing. but what is use of debug other than to see code implementation

when your code is failing some testcase you can pass the test case and debug line by line to see where your code is going wrong .can be for these dsa questions or some code you write for some project ,debug is very helpful in finding the errors in your code

1 Like