Running manually for debugging

Post Reply
BassTeQ
Junior Member
Posts: 11
Joined: 29 Dec 2013, 22:11

Running manually for debugging

Post 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
BassTeQ
Junior Member
Posts: 11
Joined: 29 Dec 2013, 22:11

Re: Running manually for debugging

Post by BassTeQ »

Anyone?
Sergio
Junior Member
Posts: 1739
Joined: 12 Dec 2006, 14:56

Re: Running manually for debugging

Post by Sergio »

Hi.
Try https://regex101.com to test your rules.

Sergio
BassTeQ
Junior Member
Posts: 11
Joined: 29 Dec 2013, 22:11

Re: Running manually for debugging

Post 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.
Post Reply