In Edge browser I have navigated to the extension manager webpage:
edge://extensions/
There, I have enabled developer tools.
The button to do so was in a sidebar in the far left of the viewport (at about the middle of the sidebar).
The codes then worked on Tampermonkey.
It’s strange that Tampermonkey > Dashboard > Settings > Config mode: Advanced, doesn’t contain a developer mode of its own, unrelated to other extensions, is it not?
This was a change that Chromium based browsers implemented fairly recently that requires you to enable development mode for things like Tampermonkey to work.
An extension cannot enable Developer Mode by itself, for obvious security reasons.