| OLD | NEW |
| (Empty) | |
| 1 Dart Observatory Developer Guide |
| 2 --- |
| 3 |
| 4 During development you do not need to run dart2js or rebuild the VM (unless |
| 5 you are also making changes to the backend). While you're working on your |
| 6 feature follow the steps: |
| 7 |
| 8 1. Open runtime/bin/vmservice/client in the Dart Editor |
| 9 2. Launch dart --enable-vm-service with a long running script in a terminal |
| 10 3. Launch web/index.html in Dartium |
| 11 |
| 12 At this point you should see the initial Observatory UI and that |
| 13 it is communicating with the VM you launched in step 2. |
| 14 |
| 15 Continue to develop and iterate until you're ready to upload your change |
| 16 for review. Upload your change and get an LGTM. |
| 17 |
| 18 4. Run dart build_.dart |
| 19 5. Run ./precommit.sh |
| 20 |
| 21 At this point you should rebuild your VM and using the build: |
| 22 |
| 23 6. Launch dart --enable-vm-service with a long running script. |
| 24 |
| 25 In a non-Dart enabled browser navigate to localhost:8181 and ensure |
| 26 that your feature works after being compiled to JavaScript. |
| 27 |
| 28 7. Commit your change |
| 29 |
| OLD | NEW |