Issue not connecting to target at localhost: 9222

Michael Barham 20 Reputation points
2023-07-28T19:19:12.03+00:00

I just installed Visual Studio and I'm receiving an error trying to execute a simple HTML file. The error is as follows (also view file attachment of screenshot). I chose the option Run without Debugging.

Cannot connect to the target at localhost: 9222

Could not connect to debug target at http://localhost: 9222

Could not find any debuggable target.

I applied my HTML, CSS and JAVASCRIPT extensions, as well as Live Server extension.

Thanks in advance for your assistance.

Michael L. Barham

******@bellsouth.netScreenshot VisualStudio

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,418 questions
{count} votes

Accepted answer
  1. Gérald Döserich 765 Reputation points
    2023-07-28T20:16:39.4766667+00:00

    You are using Visual Studio Code, not Visual Studio. These are different products.

    I suggest you ask your question here: https://stackoverflow.com/questions/tagged/visual-studio-code?tab=Newest

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.