FAQ: ts_debug_switch
FAQ: ts_debug_switch
Searchable Q&A - Common questions for discoverability
General Questions
What is Quick Debug Switch?
A lightweight Odoo module that adds a toggle button to the systray for instantly enabling/disabling Debug Mode (Developer Mode).
Who made this module?
Techvaria Solutions Pvt. Ltd. (https://techvaria.com)
What Odoo version is required?
Odoo 18.0 or later.
What license is it under?
OPL-1 (Odoo Proprietary License - commercial/proprietary).
Usage Questions
Where is the toggle button?
In the systray (top right of Odoo, near your profile picture and notifications).
What do the icons mean?
- Green toggle-on icon: Debug mode is active
- Gray toggle-off icon: Debug mode is inactive
Does clicking the toggle reload the page?
Yes, the page reloads to apply the debug mode change.
Can I toggle to assets debug or tests debug?
No, this toggle only switches between debug=0 and debug=1. For assets or tests debug, use the URL parameters manually.
Security Questions
Who can see the toggle button?
Users in the "Show Debug Switch" security group (ts_debug_switch.group_debug_switch_access).
By default, who has access?
All internal users (base.group_user) can see and use the toggle.
How do I restrict access?
- Go to Settings > Users & Companies > Groups
- Find "Show Debug Switch" group
- Remove users who shouldn't have access
Can I give it to specific users only?
Yes, remove base.group_user from the implied_ids and manually assign users to the group.
Technical Questions
Does this module have any backend models?
No, it's purely a frontend JavaScript (OWL) component.
What's the systray sequence?
Sequence 2 (appears early in systray order).
How does it check user access?
this.orm.call("res.users", "has_group",
[user.userId],
{group_ext_id: 'ts_debug_switch.group_debug_switch_access'})
How does the toggle work?
const oppositeDebug = (isDebug || isAssets || isTests) ? 0 : 1;
router.pushState({ debug: oppositeDebug }, { reload: true });
Comparison Questions
How is this different from debug_mode_toggle?
Both modules provide similar functionality. Key differences:
- ts_debug_switch uses OWL component with security group
- debug_mode_toggle may use different implementation
- Having both installed could cause conflicts
Should I use this or debug_mode_toggle?
Use one or the other, not both. Choose based on:
- Which security model you prefer
- Which UI appearance you like
- License requirements (ts_debug_switch is OPL-1)
Troubleshooting
I don't see the toggle button
- Check if the module is installed
- Verify you're in the "Show Debug Switch" group
- Clear browser cache and refresh
- Check browser console for JavaScript errors
Toggle doesn't work
- Check browser console for errors
- Verify web module is loaded
- Try clearing browser cache
Page doesn't reload after clicking
- Check for JavaScript errors in console
- Verify router service is available
- Check for popup blockers or browser restrictions
Search Keywords
ts_debug_switch, quick debug, debug mode toggle, developer mode, systray button, techvaria, debug switch, one-click debug