Developer Mode Guide
Learn how to enable developer mode, debug extensions, and use development tools across different browsers. This comprehensive guide covers everything you need to know for extension development.
Why Developer Mode?
Understanding the importance of developer tools
Debug Extensions
Inspect and debug your extension code in real-time
Monitor Performance
Track extension performance and resource usage
Fix Issues
Identify and resolve extension problems quickly
Test Features
Test new features before official release
View Logs
Access console logs and error messages
Modify Code
Make changes and see results instantly
Chrome Developer Mode
Enable and use developer tools in Chrome
Open Extensions Page
Type 'chrome://extensions' in the address bar and press Enter
Enable Developer Mode
Toggle the 'Developer mode' switch in the top right corner
Load Your Extension
Click 'Load unpacked' and select your extension folder
Access Developer Tools
Right-click extension icon → Inspect popup/background page
Developer Tools
Console
View logs, errors, and run JavaScript commands
F12 → ConsoleSources
Debug JavaScript code and set breakpoints
F12 → SourcesNetwork
Monitor network requests and responses
F12 → NetworkApplication
Inspect storage, cookies, and extension data
F12 → ApplicationFirefox Developer Mode
Enable and use developer tools in Firefox
Open Firefox
Launch Firefox browser on your computer
Enable Developer Tools
Go to Settings → More tools → Browser tools → Enable developer tools
Install Extension
Drag .xpi file onto Firefox window or use about:addons
Debug Extension
Go to about:debugging → This Firefox → [Extension Name]
Developer Tools
Console
View extension logs and execute commands
F12 → ConsoleDebugger
Set breakpoints and debug JavaScript
F12 → DebuggerNetwork Monitor
Track network activity and requests
F12 → NetworkStorage Inspector
View and edit local storage and cookies
F12 → StorageMicrosoft Edge Developer Mode
Enable and use developer tools in Edge
Open Edge Extensions
Type 'edge://extensions' in the address bar
Enable Developer Mode
Toggle 'Developer mode' on in the left sidebar
Load Extension
Click 'Load unpacked' and select extension folder
Open DevTools
Right-click extension → Inspect → Developer Tools
Developer Tools
Console
View logs and run JavaScript commands
F12 → ConsoleSources
Debug code and manage breakpoints
F12 → SourcesNetwork
Monitor network requests and performance
F12 → NetworkApplication
Inspect storage and extension data
F12 → ApplicationSafari Developer Mode (macOS)
Enable and use developer tools in Safari
Enable Develop Menu
Safari → Preferences → Advanced → Show Develop menu in menu bar
Enable Extension Development
Develop → Allow Unsigned Extensions (requires restart)
Open Extension Builder
Develop → Show Extension Builder
Load Extension
File → Open Extension → Select .safariextz file
Developer Tools
Web Inspector
Comprehensive debugging and inspection tools
Develop → Show Web InspectorConsole
View logs and execute JavaScript
Develop → Show Error ConsoleResources
Inspect storage and extension data
Develop → Show Page ResourcesCommon Debugging Techniques
Essential debugging skills for extension development
Console Logging
Use console.log() to track code execution and variable values
console.log('Extension loaded:', new Date());Setting Breakpoints
Pause code execution at specific lines to inspect state
Error Handling
Implement try-catch blocks to handle runtime errors
try { /* your code */ } catch (error) { console.error(error); }Network Monitoring
Track API calls and network requests from your extension
Storage Debugging
Inspect and modify extension storage data
Performance Analysis
Monitor extension performance and memory usage
Best Practices
Tips for effective extension development
Regular Testing
Test your extension across different scenarios and browsers
Version Control
Use Git to track changes and collaborate with team members
Code Documentation
Document your code and maintain clear comments
Error Logging
Implement comprehensive error logging and monitoring
Performance Optimization
Monitor and optimize extension performance regularly
Security Testing
Regularly audit your extension for security vulnerabilities
Additional Resources
Helpful tools and documentation
Ready to Start Developing?
Join our developer community and build amazing extensions