skip to Main Content

When i want to debug my code to display it on chrome, i get an error message "localhost refuse to connect", i don’t know what to do, this is very new to me.

I installed a debuger for chrome called "JavaScript Debugger", i thought the correction would be automatic but i doesn’t do anything.

I also tried to add configuration "chrome" "attach to chrome", but i only get error message "cannot connect to the target at localhost:9222:Could debug target at http://localhost:8080:Could not find any debuggable target.

2

Answers


  1. If it’s only HTML & CSS (no framework/server) you can just open the HTML file in chrome.

    Windows : Right click on the html file, and then Open with -> Chrome or another browser.
    You can also make Chrome the default application for .html files

    Login or Signup to reply.
  2. just open the HTML page.
    click a double click on your html page, and it will get open in the browser.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search