Skip to content

Tools for debugging components #16

Closed

Description

@cpsievert

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

Activity

  1. cpsievert commented on Dec 20, 2017

    @cpsievert
    ContributorAuthor

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

  2. chriddyp commented on Jan 2, 2018

    @chriddyp
    Member

    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.

  3. rpkyle commented on Aug 26, 2020

    @rpkyle
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions