Devtools

Install debuger 

Download the Debugger for your target OS:

  • Mac: cerebral-debugger-x.x.x.dmg
  • Windows: cerebral-debugger-setup-x.x.x.exe
  • Linux: cerebral-debugger_x.x.x_amd64.deb

Initialize 

You initialize the devtools by adding it to the app. In the index.js file you can adjust the content to:

import { App } from 'cerebral'
import Devtools from 'cerebral/devtools'

const app = App({
  state: {
    title: 'My Project'
  }  
}, {
  devtools: Devtools({
    host: 'localhost:8585'
  })
})

Open up the newly installed debugger and add a new application.

If you refresh your application and go to the state tab you should now see:

{
  title: 'My Project'
}