-
Notifications
You must be signed in to change notification settings - Fork 83
Debugging
TDM provides optional debug logging.
Depending on version, TDM stores settings in different locations.
Versions before release 2024.9.3 store the settings in C:\Users\<your login>\TDM
or ~/TDM
. Edit tdm.cfg
.
Newer versions use the XDG recommended OS-dependant locations:
-
Linux:
~/.config/tdm
(tdm.ini) -
MacOS: (pending)
-
Windows:
C:\Users\<username>\AppData\Roaming\tdm
(tdm.ini)
If you used the --local
parameter in command line, these files will be stored in the same location as the TDM binary.
To enable debug mode, edit the TDM options file, and in the [General] section add (case sensitive):
loglevel=DEBUG
In the tdm.log
you will then be able to see the autodiscovery stages progress.
With that done, you can then enable per-device MQTT message dumps:
Edit devices.cfg
(or devices.ini
in latest versions) and for every device you want to debug add in its respective section:
debug=true
After TDM restart, the log will contain every message sent to/from the device.