Jump to content



Photo
- - - - -

How to use DOFLinx logging (DEBUG) and Showing Variables


  • Please log in to reply
4 replies to this topic

#1 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 16 February 2019 - 05:32 AM

The debug functions of DOFLinx are designed to help when things are not going as well as you want.  There might be a situation where;

  • undesirable results are being observed, or;
  • an error message of some sort

 

If you are chasing an issue, or have been asked to create a DEBUG log then keep reading.  :help:

 

DOFLinx writes a file called DOFLinx.LOG into the current folder where DOFLinx is running.  This will be the folder containing DOFLinx.exe or a folder that you specified for the “Start In” within your Windows shortcut.

 

A DOFLinx.Log file will look something like this;

3b6192ffe303e441ee6bfbb330594e5e_t.jpg

 

It is a text file and can be opened in any standard Windows editor.  I use Notepad and have that set as my default application for files with the extension LOG.

 

The debug mode can be set via parameter in your DOFLinx.INI file, ie DEBUG=1

b0142ff47a4bba64cb7a90df6d2ac167_t.jpg

 

or by sending DOFLinx a message, ie DOFLinxMsg DEBUG=2

1af6d02fe9f69734d3bcbde5ec1389dc_t.jpg

 

There are three modes of debug available, they are;

0 = off, this is normal operation with logging and the debug window disabled

1 = logging is enabled and displaying the DOFLinx window.  This mode allows you to see the messages in real time in the message window as well as access the right-click test menu

2 = logging is enabled and not displaying the DOFLinx window.  This mode is useful to ensure that both the logging window does not interfere with the focus of various windows, and also to not slow down your system due to lots of scrolling in the debug window.

 

DOFLinx starts in mode 2, then switches to mode 0 once it reads your INI file unless you give it an alternative command in the INI file or via messaging.  DOFLinx needs to start in mode 2 to ensure any messages prior to reading the DEBUG= parameter are logged.

You can change between debug modes at any time.  OF course to do that you will have to be sending DOFLinx messages for the new debug level using a tool like DOFLinxMsg.

 

In addition to creating a LOG file you may have been requested to dump the memory variables when DOFLinx is running, perhaps before and / or after a certain event.  There are two ways to dump the DOFLinx memory variables to the DOFLinx.LOG file, they are explained below.

 

The first option is to have DOFLinx in debug mode 1 and use the right-click menu option as shown below.  This can be tricky to do if you are trying to also play a table to a certain point at the same time.

82b7ea882c0d5fd3952ba23b6a473726_t.jpg

 

The second option is to use a command line argument, possibly combined with debug in mode 2.  This can be done as shown below.

2f9a40457f4185c23733f77396b24619_t.jpg

 

Dumping variables to the DOFLinx.LOG file requires that logging is set to either mode 1 or 2.

 

 


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#2 grandmasterb

grandmasterb

    Hobbyist

  • Members
  • PipPip
  • 18 posts

  • Flag: Netherlands

  • Favorite Pinball: Medieval Madness

Posted 26 August 2019 - 04:59 PM

Here is some of the log. I get about 2 seconds of shaker motor.
 
 
26-aug-19 18:54:18.688 - SENSOR_41_MOAT_ENTER mode=1 action #0 of 'FF_DOF,E416,-1'
26-aug-19 18:54:18.697 - SENSOR_41_MOAT_ENTER mode=1 action #1 of 'FF_DEV,DV_SH,8000'
26-aug-19 18:54:18.707 - Link is turning on device #11 for 2000 milliseconds
26-aug-19 18:54:18.731 - There are no OFF actions for SENSOR_41_MOAT_ENTER
26-aug-19 18:54:18.798 - SENSOR_37_CASTLE_GATE mode=1 action #0 of 'FF_DOF,E415,-1'
26-aug-19 18:54:18.808 - SENSOR_37_CASTLE_GATE mode=1 action #1 of 'FF_DEV,DV_SH,8000'
26-aug-19 18:54:18.816 - Link is turning on device #11 for 2000 milliseconds
26-aug-19 18:54:18.890 - There are no OFF actions for SENSOR_37_CASTLE_GATE
26-aug-19 18:54:19.127 - SENSOR_41_MOAT_ENTER mode=1 action #0 of 'FF_DOF,E416,-1'
26-aug-19 18:54:19.138 - SENSOR_41_MOAT_ENTER mode=1 action #1 of 'FF_DEV,DV_SH,8000'
26-aug-19 18:54:19.147 - Link is turning on device #11 for 2000 milliseconds
26-aug-19 18:54:19.228 - There are no OFF actions for SENSOR_41_MOAT_ENTER
26-aug-19 18:54:19.813 - LEFTFLIPPER mode=2 action #0 of 'FF_DEV,DV_LF,0'
26-aug-19 18:54:19.821 - LEFTFLIPPER mode=2 action #1 of 'FF_DOF,E101,0'
26-aug-19 18:54:20.059 - RIGHTFLIPPER mode=1 action #0 of 'FF_DEV,DV_RF,10000'
26-aug-19 18:54:20.067 - RIGHTFLIPPER mode=1 action #1 of 'FF_DOF,E102,-1'
26-aug-19 18:54:20.438 - RIGHTFLIPPER mode=2 action #0 of 'FF_DEV,DV_RF,0'
26-aug-19 18:54:20.449 - RIGHTFLIPPER mode=2 action #1 of 'FF_DOF,E102,0'
26-aug-19 18:54:20.676 - LEFTFLIPPER mode=1 action #0 of 'FF_DEV,DV_LF,10000'
26-aug-19 18:54:20.684 - LEFTFLIPPER mode=1 action #1 of 'FF_DOF,E101,-1'
26-aug-19 18:54:21.173 - Link is turning off device #11
26-aug-19 18:54:21.433 - LEFTFLIPPER mode=2 action #0 of 'FF_DEV,DV_LF,0'
26-aug-19 18:54:21.444 - LEFTFLIPPER mode=2 action #1 of 'FF_DOF,E101,0'
26-aug-19 18:54:22.324 - LEFTFLIPPER mode=1 action #0 of 'FF_DEV,DV_LF,10000'
26-aug-19 18:54:22.334 - LEFTFLIPPER mode=1 action #1 of 'FF_DOF,E101,-1'
26-aug-19 18:54:22.558 - SENSOR_41_MOAT_ENTER mode=1 action #0 of 'FF_DOF,E416,-1'
26-aug-19 18:54:22.567 - SENSOR_41_MOAT_ENTER mode=1 action #1 of 'FF_DEV,DV_SH,8000'
26-aug-19 18:54:22.578 - Link is turning on device #11 for 2000 milliseconds
26-aug-19 18:54:22.603 - SENSOR_37_CASTLE_GATE mode=1 action #0 of 'FF_DOF,E415,-1'
26-aug-19 18:54:22.614 - SENSOR_37_CASTLE_GATE mode=1 action #1 of 'FF_DEV,DV_SH,8000'
26-aug-19 18:54:22.624 - Link is turning on device #11 for 2000 milliseconds
26-aug-19 18:54:22.633 - There are no OFF actions for SENSOR_41_MOAT_ENTER
26-aug-19 18:54:22.651 - There are no OFF actions for SENSOR_37_CASTLE_GATE
26-aug-19 18:54:22.698 - SENSOR_41_MOAT_ENTER mode=1 action #0 of 'FF_DOF,E416,-1'
26-aug-19 18:54:22.708 - SENSOR_41_MOAT_ENTER mode=1 action #1 of 'FF_DEV,DV_SH,8000'
26-aug-19 18:54:22.718 - Link is turning on device #11 for 2000 milliseconds
26-aug-19 18:54:22.745 - There are no OFF actions for SENSOR_41_MOAT_ENTER
26-aug-19 18:54:22.963 - SENSOR_RIGHT_TROLL_SAFE mode=1 action #0 of 'FF_FLASHER,DV_FLCN,FL_TT,1,200,100,DARK_RED'
26-aug-19 18:54:22.973 - SENSOR_RIGHT_TROLL_SAFE mode=1 action #1 of 'FF_DOF,E412,-1'
26-aug-19 18:54:22.983 - SENSOR_RIGHT_TROLL_SAFE mode=1 action #2 of 'FF_B2S,B2SSTARTANIMATION,PERSON'
26-aug-19 18:54:23.046 - There are no OFF actions for SENSOR_RIGHT_TROLL_SAFE
26-aug-19 18:54:23.298 - LEFTFLIPPER mode=2 action #0 of 'FF_DEV,DV_LF,0'
26-aug-19 18:54:23.306 - LEFTFLIPPER mode=2 action #1 of 'FF_DOF,E101,0'
26-aug-19 18:54:23.465 - RIGHTFLIPPER mode=1 action #0 of 'FF_DEV,DV_RF,10000'
26-aug-19 18:54:23.474 - RIGHTFLIPPER mode=1 action #1 of 'FF_DOF,E102,-1'
26-aug-19 18:54:23.560 - SLINGSHOT_RIGHT mode=1 action #0 of 'FF_DEV,DV_RS,-1'
26-aug-19 18:54:23.569 - Link is turning on device #4 for 50 milliseconds
26-aug-19 18:54:23.579 - SLINGSHOT_RIGHT mode=1 action #1 of 'FF_DOF,E111,-1'
26-aug-19 18:54:23.591 - SLINGSHOT_RIGHT mode=1 action #2 of 'FF_FLASHER,DV_FLOR,FL_TT,1,150,100,DARK_ORANGE'
26-aug-19 18:54:23.601 - SLINGSHOT_RIGHT mode=1 action #3 of 'FF_COLOUR,DARK_ORANGE,RGB_TT,125'
26-aug-19 18:54:23.613 - SLINGSHOT_RIGHT mode=1 action #4 of 'FF_B2S,B2SSTARTANIMATION,TROLL2'
26-aug-19 18:54:23.635 - There are no OFF actions for SLINGSHOT_RIGHT
26-aug-19 18:54:23.649 - Link is turning off device #4
26-aug-19 18:54:23.861 - LEFTFLIPPER mode=1 action #0 of 'FF_DEV,DV_LF,10000'
26-aug-19 18:54:23.870 - LEFTFLIPPER mode=1 action #1 of 'FF_DOF,E101,-1'
26-aug-19 18:54:24.029 - RIGHTFLIPPER mode=2 action #0 of 'FF_DEV,DV_RF,0'
26-aug-19 18:54:24.038 - RIGHTFLIPPER mode=2 action #1 of 'FF_DOF,E102,0'
26-aug-19 18:54:24.735 - Link is turning off device #11


#3 Outhere

Outhere

    Pinball Wizard

  • Platinum Supporter
  • 4,807 posts

  • Flag: United States of America

  • Favorite Pinball: M M

Posted 26 August 2019 - 05:11 PM

When posting large items like a LOG or ini files

After you paste - highlight it, Then click on this symbol above <> then post

 

Post your DOFLinx.ini file



#4 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 21 January 2021 - 11:53 PM

If you have your Cabinet on a home network you can enable DOFLinx logging and watch / capture it on another computer.

 

To do this you enable DOFLinx to allow a connection using TCP/IP over your network.  The steps are:

1. Edit your DOFLinx.INI file and set DEBUG=2 and DEBUG_TCP_PORT=8001 (You can use any port you like this is just default, of course don't use reserved ports like 80 and 443, etc)

2. Restart DOFLinx

3. On the remote computer run the supplied program TCPReader

4. Enter in the IP address of your Cabinet (and the port number if you changed it from 8001)

5. Once the Cabinet is running press "Connect" on the remote computer, then monitor the log, cut and paste what you need


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#5 cdnbum88

cdnbum88

    Hobbyist

  • Members
  • PipPip
  • 25 posts

  • Flag: ---------

  • Favorite Pinball: High Speed

Posted 15 February 2021 - 07:57 PM

I am sure something very obvious to the trained eye, but not mine. What should I look at first to address?

 

15-Feb-21 13:51:21.327 - DOF Linx for Pinball Emulators - DOFLinx by DDH69

15-Feb-21 13:51:21.342 - Starting up - version 7.20

15-Feb-21 13:51:21.342 - For support come and visit the community here http://www.vpforums....p?showforum=104

15-Feb-21 13:51:21.342 - Pre-Reading DOFLinx.INI startup config file details

15-Feb-21 13:51:21.577 - DEBUG enabled with showing of window True

15-Feb-21 13:51:21.942 - Joystick # 1 detected : 16 buttons   Z-Axis

15-Feb-21 13:51:21.958 - !!! No valid output devices for DOFLinx were found ...... sorry about that !!!

15-Feb-21 13:51:21.958 - Reading DOFLinx.INI startup config file details

15-Feb-21 13:51:21.958 - Turning DEBUG off

15-Feb-21 13:51:21.974 - DEBUG enabled with showing of window True

15-Feb-21 13:51:21.989 - Reading DirectOutputConfig file named c:\DirectOutput\config\directoutputconfig.ini

15-Feb-21 13:51:21.989 - Set Debug Privilege = Running as administrator so no action taken

15-Feb-21 13:51:23.930 - !!! No valid output devices for DOFLinx were found ...... sorry about that !!!

15-Feb-21 13:51:35.160 - Found valid process name of 'Pinball FX3'

15-Feb-21 13:51:35.160 - Setting FX3 process ID to :8372

15-Feb-21 13:51:37.192 - Activated by process name : 'Pinball FX3'

15-Feb-21 13:51:37.192 - Named process detected and startup commenced

15-Feb-21 13:51:37.723 - FX3 EXE name=C:\Program Files (x86)\Steam\steamapps\common\Pinball FX3\Pinball FX3.exe Size=11303056 bytes, Dated 1/30/2021 3:29:35 PM

15-Feb-21 13:51:37.738 - No matching size profile for FX3.EXE found - prepare to panic pinball may be broken

15-Feb-21 13:51:37.738 - FX3 information process failed to recognise the EXE, it may be a new FX3.EXE ..... now disabling the link

15-Feb-21 13:51:37.738 - Using full colour palette

15-Feb-21 13:51:37.754 - 122 colours added to the palette

15-Feb-21 13:52:53.268 - Activating process disappeared so stopping things

15-Feb-21 13:52:53.268 - !!! No valid output devices for DOFLinx were found ...... sorry about that !!!