Previewing your project


You do not want to always compile and package your project and then import it to the GetWrite app to test it; that's why the GetWrite Builder allows you to preview your project right in the editor. This article will show you how to do that.


Let's make an example project

In order to show you how to preview your project, we'll first create a simple project. We'll create a project that displays a random image from a list of images. To do that, we'll:

  1. Create a new project
  2. Upload 4 different files
  3. Create a new file assignment list
  4. Add the 4 files to the list
  5. Write the code to display a random image from the list for 4 times
Here is an example implementation of that program for reference:

Example code to show how to write such program

Now, let's open the preview runtime and see what our program does. To do that, click on the blurry emulated screen with the text "Click to open preview" (located at the top right of the editor view). This will open the preview inside of the editor, where you can use your (almost) fully functional program.

A screenshot of the running preview

Awesome! Our little program works just like a charm.

To leave the preview, click the "Close & back to editor" button at the top right.

Important tip! If you have long delays built into your program, you can increase the speed of the simulation by hovering over the "Speed" button at the bottom right of the preview and selecting a higher speed using the scrollbar. This way, you don't need to wait for the delays to finish and save tons of time.

Another tip! You can open the preview in a new tab by clicking on the button with the play icon at the very right of the navbar.

This dialog opens once you reach the end of your program. It allows you to restart the program and, if you have opened the preview runtime in a new tab, to go back to the editor:

An image of the dialog that opens once you reach the end of your program.