Appending one or more documentation links to this warning with further context might be helpful.
This is a fine suggestion but may be easier to act on if filled as an issue against GitHub - microsoft/debugpy: An implementation of the Debug Adapter Protocol for Python which is where the code generating the warning resides:
Maybe the solution should be for ipykernel to automatically append -Xfrozen_modules=off flag?