简体   繁体   English

如何在Windows中使用Dart的已检查模式启动Dartium / Chrome?

[英]How to start Dartium / Chrome in checked mode for Dart in Windows?

According to the docs: 根据文件:

https://www.dartlang.org/docs/dart-up-and-running/contents/ch04-tools-dartium.html https://www.dartlang.org/docs/dart-up-and-running/contents/ch04-tools-dartium.html

In Mac and Linux you can append a --checked but this does not work for Windows. 在Mac和Linux中,您可以附加--checked但这不适用于Windows。

How do I launch Dartium with the checked flag in Windows? 如何在Windows中使用选中的标志启动Dartium?

Apparently, using DART_FLAGS works as well for Windows. 显然,使用DART_FLAGS也适用于Windows。

see https://www.dartlang.org/tools/dartium/#using-command-line-flags 请参阅https://www.dartlang.org/tools/dartium/#using-command-line-flags

Command flags are prefixed with / on Windows, so you use: 命令标志以/为前缀,因此您使用:

C:\path\to\dartium\chrome.exe /DART_FLAGS='--checked' 

You should use a DART_FLAGS environment variable: 您应该使用DART_FLAGS环境变量:

Cmd.exe: CMD.EXE:

$> set DART_FLAGS=--checked
$> C:\path\to\dartium\chrome.exe

PowerShell: 电源外壳:

$> $env:DART_FLAGS="--checked"
$> C:\path\to\dartium\chrome.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM