Script Apps: debuging console

With the App Console, you will spend less time wondering what is wrong and more time on building meaningful scripts for your business.

Introduction

Creating apps and scripts within GpsGate Server gives you many opportunities to customize your solutions for your business. If you are not familiar with apps and scripts here are some resources to get you started:

 

Messages

App Console Messages

The App Console is accessed from the Development menu in your VehicleTracker application. The Messages section of the App Console will show all logged messages from your scripts. To log something in your script use the log() function in the script editor:

log(VARIABLE_NAME);

or

log(“My message”);

You can search the displayed messages by typing into the search field. You can also limit the number of displayed messages with:

  • - Filter by script…
  • - Filter by user…
  • - Only show errors

Settings

App Console Settings

In the Settings section you can decide if you want everything to be logged or if you only want to log entries that contain specific characters or numbers.

Note! This functionality is not the same as the filter you apply in the Messages section. Only messages that contains the characters entered here will be logged. Other messages will be ignored.

You can also set the maximum number of messages to be displayed.

Export

Export

The list of message entries can be exported to a .CSV file by pressing the arrow in the top right corner of the App Console window.