2014-02-09 26 views
4

根據文檔:如何在Windows中選中Dart in Dartium/Chrome?

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

在Mac和Linux可以追加一個--checked但這並不適用於Windows工作。

如何在Windows中使用checked標誌啓動Dartium?

+0

更新:唯一的辦法,我已經成功地在Windows中啓動Dartium與檢查模式,是我通過Dart編輯器啓動它。但是,由於我不使用飛鏢編輯器,我想在外部啓動它。 – corgrath

+0

我不會想象自己如何在「未選中」模式下使用Dart VM。對我來說,這跟你在車輪後面的感覺一樣,用雙手閉上你的眼睛,並用力氣推動油門踏板。 Dart虛擬機在「未選中」模式下工作 - 沒有剎車,沒有規則,只有速度,速度和爆炸! 「未經檢查」騎着未知的方向。 – mezoni

回答

2

顯然,使用DART_FLAGS也適用於Windows。

看到https://www.dartlang.org/tools/dartium/#using-command-line-flags

命令標誌的前綴爲/在Windows上,讓你用:

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

你如何在Windows上實際使用它? –

+2

顯然堆棧溢出拒絕了我的編輯撤消。 '/ DART_FLAGS =' - checked''不起作用,它是虛假信息,對不起! –

+0

至少2014年。現在還不確定。 – corgrath

0

您應該使用DART_FLAGS環境變量:

的Cmd.exe:

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

PowerS地獄:

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