Question about haxe chrome debug

I’ve add -debug in my hxml file.

and launch field.

{

  

    "version": "0.2.0",

    "configurations": [

        {

            "type": "chrome",

            "request": "launch",

            "name": "Launch Chrome against localhost",

            "url": "http://localhost:7456",

            "sourceMaps": true,

            "webRoot": "${workspaceFolder}",

            

            "pathMapping": {

                "/": "${workspaceFolder}/src"

            },

            "preLaunchTask": {

                "type" : "haxe",

                "args" : "active configuration"

            }

        }

        

    ]
}

then launch http://localhost:7456/

and break point is not work

image

image

what’s wrong here?

Did you launch Chrome with remote debugging enabled?

My working configuration is:

{
			"name": "Attach VSCode to Chrome",
			"port": 9222,
			"request": "attach",
			"type": "pwa-chrome",
			"runtimeExecutable": "/Applications/browsers/Google Chrome.app/Contents/MacOS/Google Chrome",
			"webRoot": "${workspaceFolder}/bin/html5/bin/",
			"skipFiles": [
				"/usr/lib/haxe/lib/*",
				"../../../../../../../../../../../usr/lib/haxe/lib/**/*.hx"
				// "node_modules/**/*.js",
				// "lib/**/*.js",
				// "async_hooks.js",
				// "inspector_async_hook.js"
			  ]
		}