Toggle Chrome DevTools
On this page
You can toggle the enableDevTools
option to control user access to Chrome
DevTools on MongoDB Compass. When you enable Chrome Devtools, you can view additional
diagnostic or debugging information from the Compass interface.
About This Task
By default, Compass disables Chrome DevTools.
Before you Begin
To use Chrome DevTools on Compass, you must enable the Enable MongoDB Shell option.
If you enable any of the following options, you cannot enable the Enable DevTools setting:
Set Read-Only Mode
maxTimeMS
Protect Connection String Secrets
Steps
You can set the enableDevTools
option in either:
The Compass Settings panel
The command line
Compass Settings Panel
Command Line
The following command starts Compass from the command line and sets
the --enableDevTools
option:
<path-to-Compass-executable> --enableDevTools
Note
The name and filepath of the Compass executable depend on your operating system.
Configuration File
You can specify the Compass configuration file in either EJSON
or YAML format. The following configurations set the
enableDevTools
option to true
:
EJSON
{ "enableDevTools": true }
YAML
enableDevTools: true
Learn More
To learn more about the MongoDB Compass configuration file, see Configuration File Settings.