Skip to content
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

Set a breakpoint in a browser test? #13

Open
Nathan22Miles opened this issue Jul 12, 2019 · 1 comment
Open

Set a breakpoint in a browser test? #13

Nathan22Miles opened this issue Jul 12, 2019 · 1 comment

Comments

@Nathan22Miles
Copy link

I love how easy it is to use this!

Is there a way to set a break point? I presume this would mean some way to open the developers tools display for the headless browser that is running the test?

Thanks, Nathan

@ccampbell
Copy link
Owner

Thanks. At the moment that is not possible, but I could see that being useful.

I sometimes end up doing similar things by commenting out code in Luna to keep the server from closing after a test run so I can open a specific test run in an actual browser for debugging purposes. Perhaps that is a feature I should support out of the box using a command line flag.

I am not sure how breakpoints would work in that context though or if puppeteer has API support for them. Perhaps you could put breakpoints in your code and then run luna using a flag like --open-in-browser. I am not entirely sure the best way to handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants