Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

223
Views
How to run debug in VS Code so that it would launch Chrome in debug mode with paused .js scripts on HTML page?

Summary: I got VS Code. I got empty HTML template file in which i learn how to write js scripts. VS Code has debugger, which can launch my file in Chrome for debugging (theoretically). I set up breakpoints in file.

I can make debugger launch Chrome and open HTML file, but Chrome doesn't stop on breakpoints and runs whole script.

I cant pause scripts from VS Code. Unless i pause script from Chrome dev tools manually.

Question: How to run debug in VS Code so that it would launch Chrome in debug mode with paused .js scripts on HTML page?

i mean, i really dont use something exotic like external scripts or environments or other stuff. Its just a plain HTML template file, with 5-30 lines of .js script code in it. Nothing else. I would expect something so basic would be able to work "from the box" with a push of a button. But its not.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Suddenly, VSCode started using breakpoints properly now. Maybe there was some hotfix or something.

about 4 years ago · Juan Pablo Isaza Report

0

This is possible:

From the VSCode docs: https://code.visualstudio.com/docs/nodejs/browser-debugging

The simplest way to debug a webpage is through the Debug: Open Link command found in the Command Palette (Ctrl+Shift+P). When you run this command, you'll be prompted for a URL to open, and the debugger will be attached.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!