What do you use to debug your plugins and code in OC v3.x?

the DebugBar plugin is not working on oc v3, php 8.x
the clockwork plugin is not working neither oc v3, php 8.x

what do you use to debug your queries and performance nowadays ?

1 Like

Hi there - I’m using Clockwork and it’s working for me. Basically just composer req, copy the config file and enable it in the .env file and use the browser extension.

The only thing I customized was to ignore some of the events, as there are a lot of those in OCMS.

/config/clockwork.php

// Dispatched events
'events' => [
	'enabled' => env('CLOCKWORK_EVENTS_ENABLED', true),

	// Ignored events (framework events are ignored by default)
	'ignored_events' => [
          'system.*',
          'cms.*',
          'backend.*',
          'site.*',
	],
],

Does this problem maybe affect you? Clockwork
The “Chromes breaks extensions making requests to self-signed sites” one.

I am using "rainlab/debugbar-plugin": "3.3.7" on OC3 (latest) & PHP 8.2 and it works as usual. No custom setup needed…

2 Likes

weird because when installing the rainlab/debugbar-plugin I have an immediate exception and can’t even run the backend.

Update Failed
"Declaration of Clockwork\Request\Log::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void" on line 26 of /Users/christophevidal/Sites/oc-skillup/plugins/offline/clockwork/vendor/itsgoingd/clockwork/Clockwork/Request/Log.php

I am using Composer for install, but it looks weird, because your error came from Clockwork… and signature of Debugbar plugin looks weird too. Is it really RainLab.Debugbar? Because there is the fork prepared for OC.

1 Like

yes somehow, the offline clockwork plugin install itself with it.
once i delete the offline/clockwork, the rainlab/debug seems to be working nicely.