Core: Plugin: environment var GIMP_PLUGIN_DEBUG_WRAP=all has no effect
Environment/Versions
- GIMP version: 2.99 latest
- Package: self-built
- Operating System: Linux
Description of the bug
The doc "Debugging Plugins" seems to say this should work: "This is similar to GIMP_PLUGIN_DEBUG", which accepts "all."
With GIMP_PLUGIN_DEBUG_WRAPPER=valgrind, this should make all plugins run under valgrind. Instead, none do.
Additional information
This benefits testers. A tester can valgrind a plugin without needing to look up the name of the file of the plugin. A tester can valgrind many plugins in one session.
The fix: app/plug-in/gimpplugindebug.c line 123
if (!(debug->flags & flag) || (strcmp (debug->name, basename) != 0))
=>
if (!(debug->flags & flag) ||
((strcmp (debug->name, basename) != 0) &&
(strcmp (debug->name, "all") != 0)))