I have some libraries that are debug Assets (...)
. I think the debug Assets (...)
OK and I still want to execute them, but I do not want them to stop execution of my application. Ideally, I would like to log them somewhere.
Given that I can not change the code of libraries (and that I still want to compile the debug and run the argument), how to show a modal dialogue Debug Besides, stop the asset (...)
Additionally, I want to make sure that the main program will continue when someone is apprehension
(ignore Behaved like a button).
Thank you!
I will not recommend it The problem is that debug Avoid
should be removed only when there are bugs in your code . If you ignore them or do not fix them, then you are dissolving your users. If, on the other hand, you are debugging . Assorted
for those things which are not not bugs, you are also making a profanity to your users (minus the effects of debug .aset).
After saying this, you can disable it The first thing you need to do is to remove the default listener from the archive:
< Code> debug.lister. Clear (); After that, add your self instead:debug.lister. Add (New MyTraceListener ());
You need to create a class that sends messages to:
class MyTraceListener: TraceListener {// ... public override zero fail ( String message, string extended message) {// log message (do not display a message box)}}
is the important method method, which is the default tex listener in the implementation of
What is the message box?
Comments
Post a Comment