This can be done using the Serenji extension. Free evaluation keys for Serenji's debugging features are available on request.

The steps are documented here. I demonstrated it on the main stage at Global Summit 2019 during a session hosted by @Jeff Fried but unfortunately the YouTube video of that session has since been set private (see item 10 at https://community.intersystems.com/post/intersystems-global-summit-2019-... for the link).

Stefan, it sounds like you could benefit from using the server-side editing capabilities of this extension, in combination with server-side source control such as Deltanji from George James Software (for whom I work). Properly implemented, server-side source control will also control people who edit using Portal and Studio, or who use our Serenji extension for VS Code instead of the InterSystems one.