Identifying problems in your code

In this section, you will review the different indicators for identifying problems in your code.

Build problems are displayed in the Problems view and annotated in the vertical ruler of your source code.

  1. Open Test.maple in the editor from the Package Explorer view.
  2. Add a syntax error by deleting the semicolon at the end of the package declaration in the source code.

    Maple Editor - Maple Editor Error Marker

  3. Click the Save button. The project is rebuilt and the problem is indicated in several ways:
    • In the Problems view, the problems are listed,
    • In the Package Explorer view
    • In the editor's vertical ruler, a problem marker is displayed near the affected line,
    • Squiggly lines appear under the word which might have caused the error, and
    • The editor tab is annotated with a problem marker.

    Maple Editor - Problem marker in Package Explorer, editor and Tasks view

  4. You can hover over the marked word in the editor to view a description of the problem. You can also hover over the problem markers in the vertical or overview rulers.

    Maple Editor - Problem marker hover

  5. Click the Close ("X") button on the editor's tab to close the editor.
  6. In the Problems view, select a problem in the list. Open its context menu and select Go To. The file is opened in the editor at the location of the problem.

    Maple Editor - Problems view

More Tutorials

Related Tasks