Closed alyhasansakr closed 3 years ago
As a first step we need to add debugs only to the following modules:
Debugs should be added to all inputs and outputs of the modules. You can identify them by looking at the module configure function (setInputs and setOutputs parameters).
For example, in Scenarios module, the inputs are the Scenario class and the outputs are ScenarioEditor and ScenarioDispatcher classes. In ScenarioDispatcher in function runScenario, you should add:
this.getLogger().debug("Scenario started: " + this.ownerScenarioModule.getName());
Do the same for each function that the user needs to know about.
Also read this one Using-debug-input
To print the debug of a module add this to the connection part in Configuration.json (in this case the module is a scenario named dummy):
{ "in" : "dummy.debug", "out" : "console.out", "commands" : { "fromDebug $message" : "console $message" } }
Now we have a debug input for every module. We need to go through all modules and write relevant debug messages. Also, define rules of how debug messages should look like and when to write a message and when to not.