Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    6,296

    Developer diagnostics tooling

    Has anyone built a plugin (or similar) to help with tracing or diagnostics?

    My thought was that it would be useful to be able to examine data in various in-memory items (e.g. $client, $song) without having to edit source code and add in debug logging calls and stop/start LMS.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,776

    Developer diagnostics tooling

    > Has anyone built a plugin (or similar) to help with tracing or
    > diagnostics?
    >
    > My thought was that it would be useful to be able to examine data in
    > various in-memory items (e.g. $client, $song) without having to edit
    > source code and add in debug logging calls and stop/start LMS.


    The logging options can be changed at run time. Logging is all the
    "diagnostic tooling" that's built-in, and I doubt there's any plugin
    adding to it. Check out the source code to figure out what logging
    setting the module you're interested in is using.

  3. #3
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    6,296
    I was thinking more of tooling similar to (but very cut down) running in a debugger that can examine variables etc without having to put them into the log file or changing code to add more logging calls.

    Then could sit in it and select a player and then browse objects that are associated with that player and refresh to see current values etc.

    Anyone tried using "-d" on slimserver.pl command line to see if it is practical?
    https://perldoc.perl.org/perldebug
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,776

    Developer diagnostics tooling

    > Anyone tried using "-d" on slimserver.pl command line to see if it is
    > practical?
    > https://perldoc.perl.org/perldebug


    Some of the former SB team tried, but they didn't manage to get LMS
    running in a deugger.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •