logDebugOff and manually removing things from the scheduled jobs table

I hate logDebugOff and the drivers that use it sometimes. I understand why its there on most cases, but when developing or debugging something, sometimes I need to turn logging on but not have the driver schedule disabling logging in XX minutes (often 30).

The easiest thing to do would be to manually remove the logging change from the "Scheduled Jobs" table. You can view the scheduled jobs, but doesn't appear to be a way to remove or suspend them.

Can scheduled jobs be manually removed?

No, only the driver or app that creates the scheduled job can remove it. The items logged by Debug logging in drivers are of very little value to anyone but the driver developer, and are there for diagnosing code issues. That's why they are turned off after 30 minutes. They can be turned on again for another 30 minutes whenever that might be required. But, generally peaking, they should not be on at all during general use of the device.

So the recommendation when needing to debug longer than the timeframe a driver has specified to schedule the logoff is to edit the driver to change this period?

I'm not using this hub for anything except development and testing.

If you have the source, just comment out the schedule() related to LogOff. Put it back when you're done.

Right, that what I've been doing. I was just asking if that is the recommended method or if there was a better alternative.

That's the only method. It's all under control of the driver code.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.