Azure 存储资源管理器命令行选项Azure Storage Explorer command-line options

Microsoft Azure 存储资源管理器具有一组可在启动该应用程序时添加的命令行选项。Microsoft Azure Storage Explorer has a set of command-line options that can be added when starting the application. 大多数命令行选项都是用于调试或故障排除。Most of the command-line options are for debugging or troubleshooting purposes.

命令行选项Command-line options

选项Option 说明Description
--debug/--prod 在调试或生产模式下启动该应用程序。Start the application in debug or production mode. 在调试模式下,本地附件数据会存储在该应用程序的本地存储中,并且不会被加密。In debug mode, the local attachment data will be stored in the application's local storage and it won't be encrypted. 隐藏的属性会显示在所选资源节点的“属性”面板中。Hidden properties will be displayed in the Properties panel for selected resource nodes. 日志详细程度会设置为输出显示存储资源管理器内部设置逻辑的调试消息。Log verbosity level will be set to print debug messages revealing Storage Explorer's internal setup logic. 默认值为 --prodThe default value is --prod.
--lang 使用指定的语言启动该应用程序。Start the application with a given language. 例如,--lang="zh-Hans"For example, --lang="zh-Hans".
--disable-gpu 在不使用 GPU 加速的情况下启动该应用程序。Start the application without GPU acceleration.
--auto-open-dev-tools 让该应用程序在出现浏览器窗口时立即打开开发人员工具窗口。Let the application open the developer tools window as soon as the browser window shows. 当需要在浏览器窗口的启动代码的某行中命中某个断点时,此选项很有用。This option is useful when you want to hit a break point at a line in the start-up code of the browser window.
--verbosity 设置存储资源管理器日志记录的详细程度。Set the verbosity level of Storage Explorer logging. 支持的详细程度包括 debugverboseinfowarnerrorsilentSupported verbosity levels include debug, verbose, info, warn, error, and silent. 例如,--verbosity=verboseFor example, --verbosity=verbose. 在生产模式下运行时,默认的详细程度为 infoWhen running in production mode, the default verbosity level is info. 在调试模式下运行时,日志详细程度将始终为 debugWhen running in debug mode, the log verbosity level will always be debug.
--log-dir 设置用于保存日志文件的目录。Set the directory to save log files. 例如,--log-dir=path_to_a_directoryFor example, --log-dir=path_to_a_directory.

使用自定义命令行选项启动存储资源管理器的示例An example of starting Storage Explorer with custom command-line options

./MicrosoftAzureStorageExplorer --lang=en --auto-open-dev-tools

备注

在新的存储资源管理器版本中,这些命令行选项可能会有变化。These command line options may change in new Storage Explorer versions.

何时使用命令行选项When to use command-line options

有些命令行选项可用于自定义存储资源管理器。Some command-line options can be used to customize Storage Explorer. 对于具有相应用户设置的选项(如 --lang),For those options that have corresponding user settings, such as --lang. 建议使用用户设置,而不是使用命令行选项。We recommend using the user settings instead of using the command-line option.

其他命令行选项对于调试和故障排除可能会有用。The other command-line options can be useful for debugging and troubleshooting. 如果你在存储资源管理器中遇到问题,则在调试模式下重现该问题有助于我们获取更详细的信息进行调查。If you run into a problem in Storage Explorer, reproducing the problem in debug mode can help us get more detailed information to investigate.