The general description of the use case is basically just that simple, you want to instantiate a DbgCtl without providing a tag, and provide the tag later. Zwoop requested this to support using the command name (from first in the array of arguments passed to main() ).
Zwoop sent me this code, using the old TSDbg tag type, to illustrate why he needs this: plugin_debug_tag = filename; auto slash = plugin_debug_tag.find_last_of('/'); auto period = plugin_debug_tag.find_last_of('.'); if (slash == Cript::string::npos) { slash = 0; } if (period != Cript::string::npos) { plugin_debug_tag = plugin_debug_tag.substr(slash + 1, period - slash - 1); } dbg_ctl_cript = TSDbgCtlCreate(plugin_debug_tag.c_str()); On Thu, Sep 7, 2023 at 10:21 PM James Peach <jpe...@apache.org> wrote: > > > On 6 Sep 2023, at 10:30 am, Walt Karas <wka...@yahooinc.com.INVALID> > wrote: > > > > See > https://urldefense.com/v3/__https://github.com/apache/trafficserver/pull/10375__;!!Op6eflyXZCqGR5I!HNiC_kV98GxiMJ82HWW7ILh8fI-49125Aif-EbvzujENYNzorTgnKnrKOfrEVlXkKXNBgkWEXf4u8qqU9w$ > . > > > There’s no description either here or in the PR; could you please explain > the use case for this? > > thanks, > James