This is an Google Chrome devtools extension that will help you to be more productive when developing on SugarCRM 7.x.
- Download it from the Chrome Web Store
- Clone this repo
- Go to Tools -> Extensions in Google Chrome
- Check Developer mode and click Load unpacked extension
- Go to the cloned repo directory and choose the 'src' folder.
- 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.
- Once in your SugarCRM instance, open Chrome devtools.
- Click on the new tab called SugarDebug.
- Check the checkbox "Start Sidecar Debug Mode" in the "Settings tab".
- Enjoy!
You need to have installed: node.js, handlebars and sass
- Once the extension is installed, navigate to the repo folder (SidecarDevTools) via terminal.
- Run 'npm install'
- Run 'grunt' to watch templates and scss files and automatically compile them.
- $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.
- Generate records: An easy way to generate records in your SugarCRM instance.
This extension is based on the backbone-devtools extension.