openfl / lime-vscode-extension

Visual Studio Code extension for OpenFL and Lime projects written in Haxe
https://marketplace.visualstudio.com/items?itemName=openfl.lime-vscode-extension
MIT License
27 stars 4 forks source link

localhost refused to connect on googleChrome #79

Closed yooni126 closed 3 years ago

yooni126 commented 3 years ago

When I want to test a sample project (html5) with vscode(I don't have any issue with flashDevelop) I see this error This site can’t be reached localhost refused to connect. this my lunch.json codes

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "pwa-chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:8080",
            "webRoot": "${workspaceFolder}"
        }
    ]
}

chrome

flashdevelop

Gama11 commented 3 years ago

You don't need a launch.json, just use the "lime test" build task instead of "lime build".