Skip to content

How To: Debug incoming widget data

Bruno P. Kinoshita edited this page Oct 16, 2016 · 1 revision

If you want to log incoming data to the console, you can use the following setting in application.coffee

Dashing.on 'ready', ->
  Dashing.debugMode = true

Otherwise, drop a debugger line in the onData method of a widget.

onData: (data) ->
    debugger
  • Home
  • User Guide
    • Installing Dashing
      • Nginx with Passenger
      • Puma
      • Heroku
    • Configuration
      • Add Authentication
      • Change default Dashboard
      • Run on a different port, or in production
      • Run Dashing on a sub path
      • Update Font Awesome fonts from version 3 to 4
    • Widgets
      • Debug incoming widget data
      • Additional Widgets
      • Set up a graph
    • Tips
      • ...
  • Integrations
    • Databases
      • Define a data model and store history data to database
      • Store and data to and display from database
      • Send MySQL data to your widgets
    • Other frameworks and libraries
      • Django
    • Monitoring
      • Dashing
    • CI
      • Jenkins
    • Issue Tracking
      • JIRA
    • Misc
      • Update a dashboard using a spreadsheet
  • Development Instructions
    • Building from source
  • ...
Clone this wiki locally