Debugging your Application

While you are developing your Equo application, you will likely run into some problems that require debugging. Since an Equo application consists of two big parts, the Java and the Javascript parts, you will need to use one of the following tools, or maybe both.

Java Debugger

When you are developing your Equo application, you will end up running it as a normal Java application. To debug it, just run your application in debug mode in your favorite IDE.

Using DevTools

To debug Javascript, HTML, and CSS, you have to run the app with the chromium.remote-debugging-port property, specifying the port for remote debugging. This will also print Chromium logs in the console.

The property must be added in the pom.xml file, inside <properties></properties> section. Example:

<properties>
    <equo.version>1.1.1</equo.version>
    <chromium.remote-debugging-port>8888</chromium.remote-debugging-port>
    ...
</properties>

Then you can use a Chromium-based browser (i.e. Chrome), although it is not strictly necessary but it provides the best visualization, and enter the following url:

localhost:8888

There, you can inspect your application elements. Note that to debug Javascript your Equo application must be already running.