# Debugging

Debugging is essential for identifying and fixing issues in your PlayCanvas scripts. When your code doesn't behave as expected, these tools and techniques will help you quickly find and resolve problems.

## Debugging Techniques

### Console Logging

The quickest way to understand what your code is doing. Add `console.log()` statements to track execution flow and inspect variable values.

**[Learn Console Logging →](https://developer.playcanvas.com/user-manual/scripting/debugging/console-logging.md)**

### Browser Developer Tools

Use breakpoints, step-through debugging, and performance profiling to deeply inspect your running code.

**[Learn Browser Dev Tools →](https://developer.playcanvas.com/user-manual/scripting/debugging/browser-dev-tools.md)**

### Inspector

Look inside the running application: its entities and components, cameras, assets and GPU resources, the passes of each frame, and the draws of a pass one at a time.

**[Learn the Inspector →](https://developer.playcanvas.com/user-manual/scripting/debugging/inspector.md)**
