We will explain in the following order:

  1. Quick tour: debugging interface
  2. How to debug: logging out to the console
  3. How to debug: executing your code with specific input
  4. How to debug: frontend challenges
  5. How to debug: using 3rd party libraries

1. Quick tour: debugging interface

Run&Save - click this button to run the challenge’s default unit tests.

image - 2024-08-20T100052.380 (1).png

Note ☝️

Useful for checking your score!

Debug - click this button to execute your source code.

image - 2024-08-20T100216.877.png

Note ☝️

Useful for debugging*!*

Test Output- check this tab to see the summary of your unit test results.

image - 2024-08-20T100232.548.png

Note ☝️

Each row is a link. Click on it to jump to the result details.

2. How to debug: logging out to the console

If you want to log out something to the console, using the Debug button is efficient.

For example, if you want to log out something from the main function below, you can write a code like this inside (This example is using JavaScript) ...

image - 2024-08-20T100245.798.png