How to config and debug in Vscode?

from this link ,I still don’t know how to config to debug

my json

	"version": "0.2.0",
	"configurations": [
			"name": "Haxe Interpreter",
			"type": "haxe-eval",
			"request": "launch",
			"args": ["build.hxml", "--interp"]

it’s seem do not auto lauch chrome and play ?or debug?

where is wrong?

my build.hxml

-cp src

-js bin/sangong.js

-main Main

-lib ds

That’s the debugger for the macro interpreter “type”: “haxe-eval”.

For js/chrome you’d want the debugger for chrome extension and one of these two configuration GitHub - microsoft/vscode-chrome-debug: Debug your JavaScript code running in Google Chrome from VS Code..

Note that it doesn’t launch a web server for you.

Make sure to compile with -debug to generate the sourcemap necessary for proper debugging.

1 Like