How to Debug Playwright Tests in VS Code | Debug Test & launch.json | Playwright + TypeScript
In this video, we will learn how to debug Playwright tests in Visual Studio Code using Playwright with TypeScript. Debugging is an important skill for automation testers. Instead of simply executing our tests, we can debug them step by step, understand the execution flow, inspect variable values, and identify issues. In this practical tutorial, we will cover two approaches to debugging Playwright tests. Topics covered in this video: 1. What is debugging and why do we need it? 2. How to debug Playwright tests using the Playwright VS Code extension. 3. Difference between Run Test and Debug Test. 4. How to add and use breakpoints. 5. How to use debugging controls: - Continue - Step Over - Step Into - Step Out - Restart and Stop 6. Understanding the Variables panel. 7. How to use the Watch panel to monitor variable values. 8. Understanding the Call Stack. 9. How to use the Debug Console. 10. What is `launch.json`? 11. How to create custom debugging configurations in VS Code. 12. Understanding important `launch.json` properties. 13. How to debug different Playwright test modules using custom configurations. 14. How to configure QA and Staging environments for debugging. By the end of this video, you will understand how to debug Playwright tests using both the built-in Playwright extension and custom `launch.json` configurations. This tutorial is designed for beginners, manual testers, and automation testers who want to improve their Playwright debugging skills. If you find this video helpful, please Like, Share, and Subscribe to **Script and Execute** for more practical Playwright and automation testing tutorials. Happy Learning! #Playwright #TypeScript #VSCode #PlaywrightDebugging #AutomationTesting




Join the discussion
Have something to add?
Sign in to reply, follow this thread, and earn XP when your answer helps someone.