Rebuild Your Logic — Think Before You Run
Select how you want to practice debugging and understanding code
Practice with pre-saved buggy code snippets
Paste your own code and debug it step-by-step
Choose a buggy code snippet to analyze and fix
This code from cppcheck has a memory management issue. Predict what happens.
This code from libxml2 may have an issue. Trace through and predict the behavior.
This code from openssl may have a security issue. Predict what happens.
This code from cppcheck may have an arithmetic issue. Predict the output.
This code may have a memory safety issue. Trace the memory lifecycle.
This code from yaml_cpp may have an issue. Predict the output.
This code may have a memory management issue. Predict what happens.
This code from libtiff may have an array access issue. Predict what happens.
This factorial function has a bug. Predict what it will output before running it.
This loop should sum numbers from 0 to 4, but something is wrong. Predict the final values.
This code modifies an array. Predict what will be logged and understand why.
Predict the output. Pay attention to variable scope and shadowing.
This code should count to 5, but something is wrong. Predict what happens.