ppeeou / tip

1 stars 1 forks source link

[vscode] chrome debugger #16

Open ppeeou opened 4 years ago

ppeeou commented 4 years ago

extenstion Debugger for Chrome 다운로드

port:3000으로 띄운다면 아래와 같이 작성 /.vscode/launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Chrome",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceRoot}/src"
    }
  ]
}
ppeeou commented 4 years ago

일반 nodejs

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      "program": "${workspaceFolder}/index.js"
    }
  ]
}