You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes especially when dealing with regexes, you find yourself to debug why it is not working. You check your regex against the assumed subject and see that it works but somehow applied to your application config it doesn't because there is more things going on: the regex is slightly altered by the app or the subject is not what you expect it to be.
I had this issue several times with PHP-Scoper (you can exclude/expose symbols based on a regex) and eventually I created the inspect-symbols command which allows to check the result.
I find myself in the exact same situation with infection with the ignoreByRegex configs and just end up putting a breakpoint and debug why it is not working. I think a command could help here.
WDYT?
The text was updated successfully, but these errors were encountered:
Sometimes especially when dealing with regexes, you find yourself to debug why it is not working. You check your regex against the assumed subject and see that it works but somehow applied to your application config it doesn't because there is more things going on: the regex is slightly altered by the app or the subject is not what you expect it to be.
I had this issue several times with PHP-Scoper (you can exclude/expose symbols based on a regex) and eventually I created the
inspect-symbols
command which allows to check the result.I find myself in the exact same situation with infection with the ignoreByRegex configs and just end up putting a breakpoint and debug why it is not working. I think a command could help here.
WDYT?
The text was updated successfully, but these errors were encountered: