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

Tools for debugging components #16

Closed
cpsievert opened this issue Dec 20, 2017 · 3 comments
Closed

Tools for debugging components #16

cpsievert opened this issue Dec 20, 2017 · 3 comments

Comments

@cpsievert
Copy link
Contributor

cpsievert commented Dec 20, 2017

It's hard to know when/why a component is 'mis-specified'. Furthermore, my current debugging process is not ideal (app$layout_set(component); app$layout_get(); app$run_server()). Some ideas for improvements:

  1. Printing a component could spin up a simple dash app with just that component.
  2. Provide a 'debugging mode/option' where client side errors are listed in a pop-up (the current generic Error loading dependencies message is not helpful and most folks won't know to open their browser's dev tools)
  3. Automatically type check arguments in R using the components propTypes definition
@cpsievert
Copy link
Contributor Author

For (1), it'd be useful to print a "server-less" webpage -- is this possible @chriddyp? Have any examples?

@chriddyp
Copy link
Member

chriddyp commented Jan 2, 2018

A lot of this will be dash-renderer specific. This is quite a bit of work, and I'm working on getting commercial sponsorship for this.

@rpkyle
Copy link
Contributor

rpkyle commented Aug 26, 2020

Quite a lot of work has been undertaken in dash-renderer via the dev tools UI, and through the use of PropTypes.js. This is now available to all Dash backends "for free", and any future work on improving debugging is likely to be handled within JavaScript. Closing as resolved.

@rpkyle rpkyle closed this as completed Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants