Is it possible to enter the Dart code directly into the Chromium Dev Tools console?

I am running the latest build of Chromium using the Dart VM. I would like to start playing with the Dart HTML library, messing around with websites using the console to enter Dart commands. Obviously, this is easy with Javascript, but I can't figure out how to tell the console that I am logging in to Dart and not to JS.

Is it possible?

+6
source share
2 answers

This is not true. I actually requested this function in the error tracker some time ago, but I cannot find it. IIRC, this is due to the fact that you will need to run the code inside a certain isolate, which is currently not possible. In javascript, everything is global, so there is a fundamental difference.

+4
source

Maybe if he has a Dart VM ... I am running Dartium, but I think it might look like!

https://drive.google.com/file/d/0B1XajbEHFd35OFRJSU5hR0FPZlE/edit?usp=sharing

You must change the context menu. If this answer does not work for you, I'm sorry ...

0
source

All Articles