Running the project and reading the result
Pressing run does two jobs in one step: it builds the project and then starts a small web server on your own machine so you can open the pages in a browser.
What you should see
A browser window opens at a local address, usually with a port number. That address only works on your computer. The page you set as the start page loads first.
Two kinds of failure
- A build failure. The project never started because the code does not compile. Read the error list, fix the first error, then build again.
- A runtime failure. The project started but a page threw an exception. The message names the line that failed.
Fix one thing at a time. When several errors appear, fix the first one and rebuild. Later errors are often caused by the first and vanish on their own.
If the page looks wrong rather than failing, compare design mode with run mode. If the project will not build, go to reading a compiler error.