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

Enhancement: Provide web debugging support #34

Open
dmurdoch opened this issue Mar 25, 2022 · 0 comments
Open

Enhancement: Provide web debugging support #34

dmurdoch opened this issue Mar 25, 2022 · 0 comments

Comments

@dmurdoch
Copy link
Contributor

The rgl package had an issue reported that I could only manage to replicate within a webshot() call. It was a problem in the rgl Javascript code, so I needed to run the browser debugger to diagnose and fix it. It took a while to figure out how to invoke the debugger, so I thought a nice enhancement would be to make this easier (e.g. a new argument to webshot() that made it do what I did).

Or, if this is too obscure, writing this issue will at least record the steps in case anyone else needs to do this.

Here are the details:

This location:

s$Page$navigate(url, wait_ = FALSE)
is where the browser is told to navigate to the page where it's taking a snapshot. If you run this command after that:

s$view()

it will open a browser window showing the browser debugger.

The browser window only stays open as long as the delay that was requested in the call to webshot(), so you should set delay = 300 or some other large number to give you enough time to make some debugging progress.

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

1 participant