https://cypress.io logo
How to debug Cypress' server code?
# i-need-help
c
I'm trying to do
node --inspect-brk node_modules/cypress/bin/cypress open --dev --inspect-brk
. I am successul to spawn the DevTools in my Chrome for it. I than slowly step or jump to breakpoints but I get this error > Error: Cannot find module '\node_modules\scripts\start.js' End goal is I want to test some
nodejs
code that I have added in the
cypress.config.ts
such as reading a file with
readFileSync
before I export the working config from there. I don't want to rely to do
console.log
there since it's very daunting to work with
try and guess
rather than inspecting what values you get at anytime during app runtime. Please help cause no matter how many times and how long I have googled, there is no post, tutorial not even Cypress docs' do have any support in this matter.