https://cypress.io logo
Join Discord
Powered by
# general-chat
  • s

    salmon-computer-88142

    08/01/2022, 4:06 PM
    does anyone know how can i debug cypress command / tasks?
  • s

    salmon-computer-88142

    08/01/2022, 4:06 PM
    it seems like i can debug only browser related code, not the backend
  • l

    late-planet-4481

    08/01/2022, 4:28 PM
    Cypress commands can be debugged in the browser using
    cy.log()
    and other means Cypress tasks run in a Node process and can be debugged using
    console.log()
    then looking at the Terminal output where you launched Cypress. Apart from logging I don't really use debugging tools, so apologies for not having that information 🙂
  • s

    salmon-computer-88142

    08/01/2022, 8:21 PM
    i would like to add breakpoint to a command function i wrote and it is running in the backend
  • s

    salmon-computer-88142

    08/01/2022, 8:33 PM
    is that possible?
  • l

    late-planet-4481

    08/01/2022, 8:41 PM
    I think? You probably want to read this page, if you haven't already: https://docs.cypress.io/guides/guides/debugging
  • s

    salmon-computer-88142

    08/01/2022, 8:41 PM
    i read, but it is helpful for the frontend.. which is obvious
  • s

    salmon-computer-88142

    08/01/2022, 8:42 PM
    in the browser environment i have no way to access backend memory
  • s

    salmon-computer-88142

    08/01/2022, 8:42 PM
    i perform actions like clearing db, add data and sometimes when something doesnt work i want to step into the function and see what happens
  • l

    late-planet-4481

    08/01/2022, 8:42 PM
    Sorry, my experience with debuggers is very minimal.
  • s

    salmon-computer-88142

    08/01/2022, 9:21 PM
    i found a way
  • s

    salmon-computer-88142

    08/01/2022, 9:21 PM
    node --inspect-brk=5556 ./node_modules/.bin/cypress open --e2e --browser chrome
    n
    • 2
    • 6
  • s

    salmon-computer-88142

    08/01/2022, 9:22 PM
    than you can attach to port 5556 and you will be able to access backend code, for example code at cypress/support/ etc..
  • s

    salmon-computer-88142

    08/01/2022, 9:23 PM
    if you want to debug cypress frontend code on your vscode, you should give environment variable: CYPRESS_REMOTE_DEBUGGING_PORT=5555
  • t

    thousands-pharmacist-63522

    08/02/2022, 8:23 AM
    any in side when new release will be? and if it will include the merged https://github.com/cypress-io/cypress/pull/22915 ?
  • s

    salmon-computer-88142

    08/02/2022, 9:46 AM
    there is a bug in cypress, command options that dont work
  • s

    salmon-computer-88142

    08/02/2022, 9:46 AM
    https://github.com/cypress-io/cypress/issues/23058
  • e

    elegant-river-87347

    08/02/2022, 11:39 AM
    Hi, who has already used the cypress-failed-log plugin? I have tried that plugin and pushed my project in CI and let one test fail.. I don't see the log in CI.. though in my local i can see its giving you the log , My question is this plugin support in CI (Gitlab)as well just like in local..? thanks
  • g

    gray-kilobyte-89541

    08/02/2022, 1:58 PM
    What do you see on CI? Any messages from the plugin? Does it save the file? What happens if you turn on the debugging messages? https://github.com/bahmutov/cypress-failed-log#debugging
  • b

    best-flower-17510

    08/02/2022, 1:59 PM
    Thanks for providing visibility for this Lychee, can you share the post in the #974362106822545429 channel as well?
  • c

    chilly-magician-64042

    08/02/2022, 8:20 PM
    Hello, what is the best channel to ask questions about Typescript and custom commands?
  • e

    elegant-river-87347

    08/02/2022, 9:16 PM
    it created a file, not on terminal, How can i show the log in terminal? Thank you 🙂
  • b

    best-flower-17510

    08/02/2022, 9:21 PM
    #763105090679865354 is a great place to start
  • g

    gray-kilobyte-89541

    08/02/2022, 9:30 PM
    yeah I am not sure from your screenshots what the problem is, I would maybe open a github issue with details, screenshots, explanation of what you expect to see vs what is happening
  • o

    orange-receptionist-17964

    08/03/2022, 9:12 AM
    hi just wondering if Cypress has the feature that non-tech colleagues can also test?
  • t

    thousands-pharmacist-63522

    08/03/2022, 9:19 AM
    thnx for the new release 🙂
  • s

    salmon-computer-88142

    08/03/2022, 11:03 AM
    is cypress also good for backend api testing? or just UI? because tests run in the browser takes time
  • g

    gray-kilobyte-89541

    08/03/2022, 1:30 PM
    Sure, we use it all the time https://glebbahmutov.com/blog/api-testing-with-sever-logs/ and https://github.com/bahmutov/cy-api
  • s

    salmon-computer-88142

    08/03/2022, 3:38 PM
    is it possible to periodically wait for something in cypress, instead of just using cy.wait, i want to wait until i see data on db
  • s

    salmon-computer-88142

    08/03/2022, 3:39 PM
    i thought using rxjs and convert it into promise, but i cannot use async await for some reason
1...727374...127Latest