Search⌘ K
AI Features

Debugging Code in Deno

Explore how to debug Deno applications using the --inspect-brk flag. Gain hands-on experience inspecting variable values, setting breakpoints, and utilizing Chrome DevTools to improve code testing and understanding.

Debugging with the inspect-brk flag

Even when we’re following best practices and doing our best to write simple, clean code, any relevant program is very likely to need debugging once in a while.

Mastering the ability to quickly run and debug code is one of the best ways to improve our learning curve for any technology. This skill makes it easy to test and understand how stuff works by trial and error and fast experimentation.

Let’s learn how we can debug our code.

The first step is to create a second program. Let’s add a couple of ...