CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

How can i debug JS code when wring with codeceptJS?

Open omeriko opened this issue 8 years ago • 5 comments

Hi guys,

I'm working with IntelliJ , how do i set up debug configuration for CodeceptJS ? I know how to use pause(), however the debugger lets me debug only the "I" api.

omeriko avatar Oct 07 '18 14:10 omeriko

What do you want to do, I am not sure to understand what you want.

xeonarno avatar Oct 08 '18 10:10 xeonarno

@xeonarno I believe he is trying to achieve the same thing that codeceptjs offers for vsCode but in webstorm/intellij. He wants to be able to click the debug button, place some breakpoints and step in/out/over using intellijs debugger rather than vscode

GSasu avatar Oct 25 '18 13:10 GSasu

@GSasu What codeceptjs do for VSCode ? I'm very interesting !

xeonarno avatar Oct 30 '18 10:10 xeonarno

@xeonarno the codeceptjs documentation shows multiple ways of debugging. One of the things it targets is setting up your preferred editor debugger to be able to just click Debug, start the tests and stop at a breakpoint to be able to continue to step in/out/over etc.

CodeceptJS documentation

GSasu avatar Oct 31 '18 14:10 GSasu

Getting error of outFiles in vscode with below launch config

image

{
    "type": "node",
    "request": "launch",
    "name": "codeceptjs",
    "args": ["run"],
    "program": "${workspaceFolder}/node_modules/.bin/codeceptjs"
  }

This error suggest that debugger need main file from where it can start debugging. For express , its mostly app.js

Any such file/config for codeceptjs?

sandeepscet avatar Apr 22 '20 05:04 sandeepscet