Is there a way to modify %SYS classes for debugging purposes ?
I got an error that occurs inside %CSP.Broker. That class is located inside %SYS namespace.
I tried lot of things (including checking system logs) but ultimately what would really help would be to be able to modify that class to add my own logs into it.
If I try to modify it, I got this error message:
Item '%CSP.Broker' is mapped from a database that you do no have write permissions on.
What I also tried (but failed) : to create a new class outside %SYS namespace (eg: SomeNamespace.MyBroker) and copy code implementation of %CSP.Broker into that class (just changing name of the class). I compiled it, then redirected my requests to that class. It does not work as %CSP.Broker except to be run in %SYS.
I know modifying %SYS classes is not a good idea (as they might not work anymore as you would expect), but it would be temporary and only for debugging in this case.