Debug on plugins

Hello, I’m trying to debug an issue related with the integration between discovery and lms services, is there any way to debug a plugin in tutor? The goal would be to set a breakpoint in discovery source code.

Thanks a lot!

Not out of the box, no, as there is currently no way to define development-only settings for third party services, like discovery. This is likely to change in the next release, though, as there will be a dedicated docker-compose.yml file for development: https://github.com/overhangio/tutor/blob/master/tutor/templates/dev/docker-compose.yml

However, you should be able to debug the discovery service by manually mounting your local discovery repo inside the discovery image – this is pretty much what I did while I was developing the tutor-discovery plugin.

Let us know if this any use to you!