mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-19 22:49:54 +08:00
js基础18-nodejs导论
This commit is contained in:
parent
b9b7d7785b
commit
2ce3761ace
BIN
猿人学逆向学习/js基础18-nodejs导论/img/1.png
Normal file
BIN
猿人学逆向学习/js基础18-nodejs导论/img/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
猿人学逆向学习/js基础18-nodejs导论/img/2.png
Normal file
BIN
猿人学逆向学习/js基础18-nodejs导论/img/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
6
猿人学逆向学习/js基础18-nodejs导论/js基础18-nodejs导论.js
Normal file
6
猿人学逆向学习/js基础18-nodejs导论/js基础18-nodejs导论.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
var a = 1;
|
||||||
|
debugger
|
||||||
|
b = function () {
|
||||||
|
return a + 1;
|
||||||
|
};
|
||||||
|
console.log(b);
|
28
猿人学逆向学习/js基础18-nodejs导论/readme.md
Normal file
28
猿人学逆向学习/js基础18-nodejs导论/readme.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# 知识点:
|
||||||
|
|
||||||
|
## 使用node-inspect 调试线上 nodejs 应用
|
||||||
|
|
||||||
|
先安装`inspect`库
|
||||||
|
|
||||||
|
npm install -g node-inspect
|
||||||
|
|
||||||
|
创建一个js文件`js基础18-nodejs导论.js`
|
||||||
|
|
||||||
|
var a = 1;
|
||||||
|
debugger
|
||||||
|
b = function () {
|
||||||
|
return a + 1;
|
||||||
|
};
|
||||||
|
console.log(b);
|
||||||
|
|
||||||
|
启动
|
||||||
|
|
||||||
|
node --inspect-brk 猿人学逆向学习/js基础18-nodejs导论/js基础18-nodejs导论.js
|
||||||
|
|
||||||
|
打开浏览器控制台左上角的nodejs开发工具
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
效果图
|
||||||
|
|
||||||
|

|
Loading…
x
Reference in New Issue
Block a user