Home>

When a simple code "Hello World!" JS. in vscode. With Google, the following is displayed:

Launch.json :

{
    //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": "Chrome",
            "Request": "Launch",
            "NAME": "Launch Chrome Against Localhost",
            "URL": "http: //LocalHost: 8080",
            "Webroot": "$ {workspacefolder}"
        }
    ]
}
  • Answer # 1

    You are a little confusing the use of Debug in Vscode. You must run the HTTP server at the address and port http: //Localhost: 8080 Then check its job connecting under Debug to Chrome. Just look a few instructions for creating and running a web server. Then watch his debug

    I never worked with js, so quite natural. Thank you

    Lcashe2021-09-16 17:39:15
  • Answer # 2

    You are a little confusing the use of Debug in Vscode. You must run the HTTP server at the address and port http: //Localhost: 8080 Then check its job connecting under Debug to Chrome. Just look a few instructions for creating and running a web server. Then watch his debug

    I never worked with js, so quite natural. Thank you

    Lcashe2021-09-16 17:39:15