惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
Intezer
D
DataBreaches.Net
罗磊的独立博客
P
Proofpoint News Feed
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
A
Arctic Wolf
C
Cyber Attacks, Cyber Crime and Cyber Security
Security Latest
Security Latest
Stack Overflow Blog
Stack Overflow Blog
S
Security @ Cisco Blogs
博客园 - Franky
L
LangChain Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LINUX DO - 最新话题
SecWiki News
SecWiki News
H
Help Net Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Vercel News
Vercel News
G
Google Developers Blog
TaoSecurity Blog
TaoSecurity Blog
B
Blog
I
InfoQ
V
Visual Studio Blog
S
Security Affairs
Help Net Security
Help Net Security
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
N
News | PayPal Newsroom
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
Engineering at Meta
Engineering at Meta
PCI Perspectives
PCI Perspectives
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
S
Secure Thoughts
F
Fortinet All Blogs
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
人人都是产品经理
人人都是产品经理
V
Vulnerabilities – Threatpost
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
MongoDB | Blog
MongoDB | Blog
Cloudbric
Cloudbric
T
Threat Research - Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
宝玉的分享
宝玉的分享
F
Full Disclosure

博客园 - royalrover

How LLMs Actually Work(翻译) 微调LLM前你需要了解的一些概念-- 反向传播解析 微调LLM前你需要了解的一些概念-- 基于 Qwen3 配置文件的实践 微调LLM前你需要了解的一些概念2--多头注意力机制 微调LLM前你需要了解的一些概念1 -- 综述 从控制论看 Harness Engineering:当反馈回路终于能在"重要的地方"闭合 快速搭建你的数据智能分析 Agent 5分钟Mac本地跑通32B Qwen!免费GPT-4o替代,还能5分钟造个会开浏览器+执行Shell的AI Agent 深入剖析 nanobot:轻量级 AI Agent 框架的架构之道 k8s上手 iOS MDM(监管锁)入门 SRE中的SLA/SLO/SLI 开放网关统一认证服务 业务网关之AK中心建设 Feature Police导致iframe页面无法使用粘贴功能 页面异步请求canceled 或 network中接口请求成功但无法查看返回值 我在阿里云做云开发平台 阿里云云开发平台助力企业Serverless架构升级实战 随心一笔 nodejs中的并发编程 基于Unix Socket的可靠Node.js HTTP代理实现(支持WebSocket协议) cluster模块设置子进程的stdio - royalrover - 博客园 nginx(tengine)访问日志分片 serverless在微店node领域的探索应用 Node EE方案 -- Rockerjs在微店的建设与发展
node应用远程调试教程
royalrover · 2019-05-15 · via 博客园 - royalrover

远程调试

所谓远程调试,是指在本地IDE或命令行即时调试服务端代码,这在预发环境的测试阶段可以使用。远程调试避免了服务端环境的模拟,可快速定位bug。
debug

node应用调试

本文的教程主要针对采用 VS Code IDE的群体。目前并未搭建一个系统专门支持node应用远程调试,因此需要开发人员手动去对应服务端机器运行相关操作:

  1. 通过需要debug的服务端机器
  2. 关闭当前所有工作进程 慎重,确保机器是你需要debug的机器
  3. 切换至应用的工作目录,执行 node --inspect=127.0.0.1:9090 index ,IP地址替换为对应机器的IP
  4. 配置VS Code的 “.launch.json”文件,在 configurations数组中加入一个配置对象
"configurations": [
  {
	"type": "node",
	"request": "attach",
	"name": "vsssssss",
	"address": "127.0.0.1",
	"port": 9090,
	"localRoot": "${workspaceFolder}",
	"remoteRoot": "/home/www/abc/deploy/abc" // 工作目录
  }
]

配置对象的type、request、localRoot字段固定不变;name为应用名可随意取;address、port为需要debug的服务IP和端口,remoteRoot为服务端代码的绝对路径。

  1. 在VS Code中的debug tab栏选择第4部中对应 name字段名称的应用,启动即可,此后在本地代码中打的所有断点都会生效 。

此文档针对node 8+版本

参考

node_debugger