Debugging WebdriverIO tests in VSCode - breakpoints and stepping through commands

Published: 21 February 2022
on channel: Will Brock
10,786
56

Setting breakpoints, stepping through commands and reading variables are simple when debugging WebdriverIO tests in VSCode using node's debug mode allowing you to remove write your tests faster. Debugging this way can eliminate the need to constantly write console.log() all over your tests to see what is inside a variable and allow you to stop execution of tests.

Setting this up is very simple and will allow you to start debugging you tests like a pro. The debugger works just like the browser debug tools when you set breakpoints and step through code when debugging client side Javascript.

In this video I'll show you two different ways of enabling debug mode. Using Auto Attach and Javascript Debug Terminal.

https://code.visualstudio.com/docs/no...


Watch video Debugging WebdriverIO tests in VSCode - breakpoints and stepping through commands online without registration, duration hours minute second in high quality. This video was added by user Will Brock 21 February 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,786 once and liked it 56 people.