Page 1 of 1

Running manually for debugging

Posted: 27 Mar 2025, 04:28
by BassTeQ
Hello,

I'd like to test a custom rule in regex.custom.pm, whats the best way to test this manually, so I can debug it?
I added a print statement in there, however it's not being shown if I run /etc/csf/lfd.pl -f .

Thanks

Re: Running manually for debugging

Posted: 30 Mar 2025, 23:59
by BassTeQ
Anyone?

Re: Running manually for debugging

Posted: 31 Mar 2025, 04:48
by Sergio
Hi.
Try https://regex101.com to test your rules.

Sergio

Re: Running manually for debugging

Posted: 31 Mar 2025, 06:29
by BassTeQ
Hello, thanks it wasn't to test the regex as such, I'd used that site to validate the pattern, I just wanted to debug the code in that module in real time and see the output.