Community
Participate
Working Groups
Created attachment 210526 [details] POC patch With the completion of bug 296631 you can now turn on / off tracing as needed. This is extremely valuable to debug.ui wrt tracing viewer problems (I can't even recall how many times I have encountered a viewer problem and had to restart to turn on tracing only to find I cannot reproduce the problem anymore). The attached patch hooks up the dynamic tracing as a test and hooks into the new tracing UI page. A couple of things to think about: 1. currently we use the tracing flags as we always have - i.e. if true sysout a message. This works ok, but it feels to me like the more correct way is to use the DebugTrace service, that way we don't have to manage the state of the trace options at all on the debug side. 2. using sysout with the tracing prefs breaks the pref for an output file -i.e. using sysout completely ignores the output file specified - Chatting with Curtis, this is another reason to use the DebugTrace service. 3. In the past we had a root level 'debug' option that could be used to disable all other trace options - with the new UI / tracing this does not make much sense, meaning it just appears as another entry in the list, with no visual indication that it can turn off all the other options for a given bundle
Created attachment 210527 [details] screen shot In the attached screen shot you can better see what I mean about the root 'debug' option. In the past this appeared in the options file to allow all tracing options to be quickly disabled, but now it causes confusion - if it is not on, the rest of the options do not work. I guess the best option would be to remove it from the options file.
(In reply to comment #1) > I guess the best option would be to remove it from the options file. Awesome! I agree about removing the root "debug" option, I've never understood the point of it.
(In reply to comment #2) > (In reply to comment #1) > > I guess the best option would be to remove it from the options file. > > Awesome! I agree about removing the root "debug" option, I've never understood > the point of it. Bad idea, see org.eclipse.core.runtime.Plugin.isDebugging().
Pushed fix to: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=d1d5476fcc2cadd0ee6ff5e5f235f0a8df842287
Verified in: Version: 4.2.0 Build id: I20120313-0610