DOKK / manpages / debian 11 / libplack-middleware-debug-perl / Plack::Middleware::Debug::TrackObjects.3pm.en
Plack::Middleware::Debug::TrackObjects(3pm) User Contributed Perl Documentation Plack::Middleware::Debug::TrackObjects(3pm)

Plack::Middleware::Debug::TrackObjects - Track Objects panel

  enable "Debug";
  enable "Debug::TrackObjects";

And when you load the application with plackup or other launcher:

  # track everything
  plackup -MDevel::TrackObjects=/^/ myapp.psgi

You can specify the namespace with a regular expression. See Devel::TrackObjects for details.

This debug panel captures objects created in a request cycle by using Devel::TrackObjects. You can run your applications multiple times (i.e. refreshing the page) to see if the count of tracked objects increases, in which case there are leaked objects.

Plack::Middleware::Debug Devel::TrackObjects

2020-05-08 perl v5.30.0