2010/7/22 Denis Kudriashov
<dionisiydk@gmail.com>
Yes, I can do this.
But I hope there is existed solution.
I was think scriptLoader>>cleanForProduction do this (disable debugger).
I think I don't agree. That is not cleaning, but a matter of bussines. I know a lot of seaside apps running headless with RFB...in that case I do want a debugger.
But I agree, it would be good to have a Strategy and 2 implementation. DebuggerUnhandledError and TranscriptUhandledError. You put the first as default.
Then, you put the straegy as an (class?) instVar of� UnhandledError. you define an api method and implement it in both.
Then, at runtime, in your app you can set that insVar and you are done. In addition, it can be added to Core and you create a setting that let you choose the strategy.
Cheers
Mariano
�
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project