-
Notifications
You must be signed in to change notification settings - Fork 11
feat: add browser logs #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@vCaisim is it ready? A short demo would be great. Also, please update the status of the tasks in https://github.com/orgs/currents-dev/projects/4 |
@vCaisim is it ready for review? if yes, please move the associated tasks in https://github.com/currents-dev/cypress-debugger/projects?query=is%3Aopen |
Let me make some small changes, and update the UI a bit. I will ask for review later |
Thanks for the feedback. I will analyze how puppeteer uses CDP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vSaicim that's great, especially for a POC, I think we can publish it soon.
Please see inline comments, but also I am seeing the use of any
across the board. What do you think of removing as many any
as possible?
packages/plugin/src/browserLogs.ts
Outdated
return Number(existing.split("=")[1]); | ||
} | ||
|
||
// running cypress with ELECTRON_EXTRA_LAUNCH_ARGS="--remote-debugging-port=9222" do not set the args |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vCaisim what do you mean here? Please elaborate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The debugging port is retrieved from the browser launch args. For electron, the args is an empty object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, please provide an example of how the debugging port is retrieved for chrome and electron - it help to maintain the project\
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the previous review: please provide an example of how the debugging port is retrieved for chrome and electron - it help to maintain the project
Changes:
callback
function (Explore how can we collect console messages #5)