What are some tricks that you use to do debugging quickly in your code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What are some tricks that you use to do debugging quickly in your code?

19th Feb 2018, 4:18 PM
Isair Calhawk
Isair Calhawk - avatar
4 Answers
+ 6
If I suspect a variable's value is the culprit I used to print out the value here and there and track down where it's change/calculation didn't come as expected, pretty lame, but it works for small code, large code I guess may need help from debugging tool, probably : )
19th Feb 2018, 4:45 PM
Ipang
+ 5
@Flamice, I'm afraid I can't give you much details, but basically it's a tool that knows what the debugged program do, what value it wrote to memory, which system function it called, something like that, detailed things that developers need to know what were wrong so they know what to fix : ) Hth, cmiiw
19th Feb 2018, 5:01 PM
Ipang
+ 4
What's a debugging tool? @Ipang
19th Feb 2018, 4:47 PM
Isair Calhawk
Isair Calhawk - avatar
0
A debugger is for example able to execute your code line by line which is quite useful. It also could show the values of all variables at each step.
19th Feb 2018, 5:25 PM
D B
D B - avatar