Prerequisites
Before starting, make sure you have:- Installed the extension (installation guide)
- A HubSpot CMS website to test with (development or staging environment recommended)
Your first debug parameter
Navigate to a HubSpot page
Open a page on your HubSpot CMS website in your browser. This could be:
- A page on your HubSpot-hosted site
- A template you’re developing
- Your HubSpot Design Manager
*.hs-sites.com or your custom domain connected to HubSpot.Open the extension
Click the FreshJuice HubSpot DevTools icon in your browser toolbar. The popup interface will appear.
Enable debug mode
Click the “Debug Mode” toggle in the popup. This will:To:
- Add
hsDebug=trueto your current page URL - Reload the page automatically
- Add the domain to your allowed domains list
Understanding debug parameters
The extension manages three primary debug parameters:hsDebug
ThehsDebug=true parameter enables HubSpot’s debug mode, which:
- Shows detailed error messages in HubL templates
- Displays variable values and context information
- Provides stack traces for debugging
- Makes development and troubleshooting easier
hsCacheBuster
ThehsCacheBuster={timestamp} parameter bypasses HubSpot’s caching system by adding a unique timestamp to each request. This ensures you see the latest version of your templates and assets.
Example URL:
The timestamp value is automatically generated each time you toggle the cache buster or navigate to a new page.
developerMode
ThedeveloperMode=true parameter enables developer features in HubSpot’s backend interfaces, including:
- Additional debugging information in the Design Manager
- Advanced settings and options
- Backend developer tools
Using multiple parameters
You can enable multiple debug parameters simultaneously. Try this:Auto-apply to links
By default, the extension automatically propagates your debug parameters to internal links on the page. This means:- When you click a link to another page on the same domain
- The debug parameters follow you to the new page
- You don’t need to manually re-enable them
Managing domains
The extension tracks which domains you’ve enabled debugging on:Enable a website
When you enable any debug parameter, the domain is automatically added to your allowed domains list. You can also manually enable a website:- Navigate to a page with debug parameters already in the URL
- Open the extension popup
- Click “Enable for this website”
Disable a website
To remove a domain from your allowed list:- Navigate to the domain you want to disable
- Open the extension popup
- Click “Forget this website”
- Confirm the action
Badge indicator
The badge on the extension icon provides quick status information:| Badge | Meaning |
|---|---|
| No badge | No debug parameters active on current page |
| Green “1” | One debug parameter active |
| Green “2” | Two debug parameters active |
| Green “3” | Three debug parameters active (all enabled) |
- Toggle parameters on/off
- Navigate between pages
- Switch browser tabs
Settings
Click the “Settings” link in the extension popup to access additional options:- Auto-apply to links: Automatically add debug parameters to internal links
- Show badge: Display the parameter count badge on the extension icon
- Persist across sessions: Keep debug parameters active when navigating to new pages on allowed domains
Quick tips
Click anywhere on cards
You can click anywhere on a toggle card to enable/disable it, not just the switch itself
Use keyboard shortcuts
The extension supports keyboard shortcuts for toggling parameters (configure in browser settings)
Right-click menu
Right-click on any page to access debug parameters through the context menu
Check documentation
Use the HubL quick links in the popup for instant access to HubSpot documentation
Next steps
Now that you understand the basics:- Test on your development sites: Enable debug parameters on your HubSpot staging or development environments
- Customize settings: Adjust the extension behavior in the settings page
- Explore HubL docs: Use the quick links to learn more about HubL development
- Share with your team: Help other developers on your team install and use the extension
Remember to disable debug parameters on production sites. The extension makes it easy to toggle them on and off as needed.