Skip to main content

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 →

Browser Developer Tools​

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

Learn Browser Dev Tools →

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 →