5

I now know that I can't interact with Dart via the console, but I was hoping that there may be another way to invoke a REPL within Dartium.

Basically, what I would like to be able to do is: 1. Go to a website in Dartium 2. Invoke some sort of Dart REPL 3. Mess about with the DOM, CSS etc., using Dart commands, rather than Javascript.

Is this possible at all? Or, is the Dart development model all Edit/Refresh?

Cheers Andy

Community
  • 1
  • 1
Andy Burnett
  • 305
  • 1
  • 5

2 Answers2

1

Chrome Dev tools in Dartium will now let you do this very nicely.

Alan Knight
  • 2,759
  • 1
  • 15
  • 13
  • That's great. However, I am obviously doing something wrong. I downloaded Dart & Dartium. When I go to e.g. this page, Observatory says Dart not running. How do I get the VM running? – Andy Burnett May 22 '14 at 00:23
  • Access a web site that has Dart code on it? So, for example, in the editor, create a new project. Click "Run in Dartium" on the .dart file that it creates. Open Dev Tools in Dartium. – Alan Knight May 22 '14 at 17:15
  • Ah, that makes sense. But, is there no way to fire up the Dart VM for any site? I like the fact that a REPL now exists, but it doesn't - yet - answer my need to be able to use Dart to hack about with any site, rather than e.g. injecting jquery. – Andy Burnett May 25 '14 at 23:32
0

Dart edit model is Edit/Refresh. Maybe you are looking for something like http://try.dartlang.org/

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567