debug with es-module-specifier-resolution

vscode nodejs debug Передача параметров/флагов для ноды (напр. experimental-modules)

Стандартная конфигурация .vscode/launch.json:

{
    "version": "0.2.0",
    "configurations": [

        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "program": "${workspaceFolder}/run.js",
        }
    ]
}

Чтобы передать параметры, используйте не program, а args, например:

Subscribe to RSS - debug with es-module-specifier-resolution