开云体育

Locked Re: Jython script debugging in JMRI


 

Jerry,

Better informed members will provide even more information, but for now a short list of sources for clues:

  1. Use the Help -> System console.. menu item to open the JMRI System console window that gives you instant information pertaining to WARN and ERROR messages.
  2. Investigate the information found at to be better able to insert more of your own DEBUG and INFO messages in your "session.log" file, and by the way, the JMRI System console window.
  3. If the script has "print" statements, they will appear on the JMRI System console but do not appear on the session.log file. On the JMRI System console window, those printed lines may be easy to overlook. Use the menu item Panels -> Script Output to open the Script Output window to see the results of the print statements isolated from the other noise and the text that appears can be copied to your clipboard for saving to a text editor.
  4. As an extension of the Logging suggestion in item 2. you might also need to investigate the info suggested concerning the "default.lcf" file that is described about half way down the page in that link.

Cliff in Baja SoCal

Join [email protected] to automatically receive all group messages.