Debugging: the introduction

Kotlin Workshop

Resources

Project to debug

A small Ktor online bookshop — clone it and start debugging.

Git Repository

Bugs to debug

Bug 1 — SAVE10 discount not applied

A user added six different books to their shopping cart. They applied the discount code SAVE10 to the last item, but the discount was not applied.

Bug 2 — Checkout total makes no sense

A user added The Small Web and Testing Tiny Apps to the cart. At checkout, the dollar total did not make sense.

Bug 3 — Discount lost after adding another copy

A user added Git Without Panic with the discount code SAVE10. Later, they added another copy. The discount is now gone.

Bug 4 — Wrong item removed from cart

A user added APIs for Beginners and CSS That Behaves to the cart. Later, they tried to remove the first book, but the second one was removed instead.