GithubHelp home page GithubHelp logo

zhangaz1 / vscode-debug-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zry656565/vscode-debug-sample

0.0 2.0 0.0 17 KB

debug pages in chrome or node server with nodemon

HTML 35.75% JavaScript 64.25%

vscode-debug-sample's Introduction

VSCODE Debug Guide

相关文章:Visual Studio Code 前端调试不完全指南

安装依赖

npm install
# or
yarn

1. 调试前端代码

  1. vscode 安装 debugger-for-chrome
  2. npm run frontend
  3. 启动调试配置:“启动一个独立的 Chrome 以调试 frontend”
  4. frontend/index.js 中加断点
  5. 访问 http://localhost:8091/frontend/

2. 调试通过 Nodemon 启动的 Node 服务器

debug 模式

  1. npm run backend:debug
  2. 启动调试配置:“附加于已启动的 Node 服务器(debug模式)”
  3. server/app.js 中加断点
  4. 访问 http://localhost:8092/

inspect 模式

  1. npm run backend:inspect
  2. 启动调试配置:“附加于已启动的 Node 服务器(inspect模式)”
  3. server/app.js 中加断点
  4. 访问 http://localhost:8092/

vscode-debug-sample's People

Contributors

zry656565 avatar

Watchers

zhangaz1 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.