简体   繁体   中英

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

In Mac and Linux you can append a --checked but this does not work for Windows.

How do I launch Dartium with the checked flag in Windows?

Apparently, using DART_FLAGS works as well for Windows.

see 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:

Cmd.exe:

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

PowerShell:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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