Search for
environmentin Windows and openEdit the system environment variablesand click the Environment Variables... button to open the editing page.

Create a new user variable as follows:
Variable name: ENABLE_HEAP_DUMPS
Variable value: 1

The setting will only take effect after you close all existing Edge processes (msedge.exe) and start a new Edge window.
