Define debug level only for one module/file?

asterisk.conf allows you to set the global debug level, which isn’t what you want here.

I think the best way might be in cli.conf, just add:

core set debug 5 pbx_variables.c = yes