我是Dart的新手,想开始为Dart开发应用程序。现在,我只是为此使用dart2js --minify,效果很好,但是当我需要通过更改代码,运行代码,更改代码,运行代码等来调试错误时,速度确实很慢。这需要很多因此,虽然dart2js的编译速度非常快,但是使用dart2js调试Dart Web应用程序的速度确实很慢。

我想在Dartium中使用Dart VM,并按照this video的指示下载它(尽管坦白地说,我没有观看整个视频,因为其中有一部分与我不使用的Atom有关)。但是,当我打开Dartium(./chrome./chrome-wrapper)时,其外观与常规Chrome并无不同。没有--no-sandbox警告,并且用户代理与Chromium中的相同(没有(Dart))。当我尝试使用<script type="application/dart" [...]>运行Dart Web应用程序时,它不起作用。

运行Dartium时,我还会收到以下错误(./chrome./chrome-wrapper发生相同的错误):

[18997:18997:0829/163445:ERROR:browser_main_loop.cc(163)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Created new window in existing browser session.
[19044:19044:0829/163446:ERROR:zygote_linux.cc(587)] write: Broken pipe
[0829/163446:ERROR:nacl_helper_linux.cc(282)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly

但是,当我转到the link in the error时,这些指导指的是一堆我不认识的命令和文件。

有人可以帮我弄清楚如何构建Dartium吗?非常感谢!

附加信息:
  • 我正在运行Ubuntu 15.04,并且我的默认浏览器是Chromium。
  • 当我同时运行./chrome./chrome-wrapper时,我关闭了原始的Chromium。
  • 我已经上传了项目to GitHub
  • 最佳答案

    也许Dartium正在连接到Chromium的现有版本。尝试使用--user-data-dir=/tmp/dartium_dir启动Dartium。这将确保它与任何现有的Chromium分开启动。

    关于linux - 如何在Linux上运行Dartium?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32290544/

    10-10 14:32