How can I debug localhost with MS Edge?

As a security precaution, Microsoft Edge uses network isolation by default. You can override it via the command line right now, but it will be in about:flags in the future.