Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.43 KB

README.md

File metadata and controls

48 lines (36 loc) · 2.43 KB

Sidecar Debugger Tool

Copyright 2015 SugarCRM

This is an Google Chrome devtools extension that will help you to be more productive when developing on Sugar 7.x. Based on the backbone devtools project by Tomasz Szczęśniak-Szlagowski.

Installing

For regular users:

  1. Download it from the Chrome Web Store

For contributors:

  1. Clone this repo
  2. Go to Tools -> Extensions in Google Chrome
  3. Check Developer mode and click Load unpacked extension
  4. Go to the cloned repo directory and choose the 'src' folder.
  5. When you make changes to the code, you just need to close the devtools on you Sugar instance, refresh the 'Extensions' page in Chrome and reopen the Sidecar devtools.

Using

  1. Once in your SugarCRM instance, click on the Sidecar Developer Tool icon.
  2. Open Chrome Developer Tools and select the new tab called SugarDebug.
  3. Enjoy!

Developing the Sidecar Dev Tool

Requirement:

You need to have installed: node.js, handlebars and sass

Steps:

  1. Once the extension is installed, navigate to the repo folder (SidecarDevTools) via terminal.
  2. Run 'npm install'
  3. Run 'grunt' to watch templates and scss files and automatically compile them.

Contributing:

See CONTRIBUTING for how you can contribute changes back into this project.

Features

  • $view console variable after inspecting a DOM Element (it points to the closest parent Sidecar Component).
  • In SugarDebug Panel, you will find different several tabs:
    • Application Stream: A timeline of what is happening in the app. It shows the methods that are called and the events that are triggered. For each of them, you have access to the passed arguments and the component object.
    • Structure: A hierarchical tree representing the Sugar components of the current page.
    • Render times: Allows you to measure the render duration of the different fields.
    • Perf reports: A table showing the rendered components on the current page, with the average render times.
    • Generate records: An easy way to generate records in your SugarCRM instance.

Notes

This extension is based on the backbone-devtools extension.