Tuesday, 4 April 2017
Debugging NodeJs application in windows
Basic debugging
1. execute cmd.exe or open command line
2, type "node debug [path]/[file name].js". you can see that as below.
3. type "n", it will go to next step.
4. type "c". It will continue to run the rest code without stop.
5. type "quit". it will leave debug.
Advance debug
1. How to watch on break point.
1.1 type "node debug [path]/debuugering.js".
1.2 type "n"
1.3 type "n"
1.4 type "repl"
1.5 type "console.log(person.age)"
You can see the value of current person.age.
2. Set up a break point in js file.
2.1 open debugging.js file
2.2 type "debugger"
2.3 save the file
2.4 go back to command line.
2.5 type "node debug [path]/debuugering.js".
2.6 type "c"
2.7 it will run until break point.
Subscribe to:
Post Comments (Atom)
how-to-recursively-create-subfolder-in-each-folder-of-a-directory-in-cmd
test.cmd: @echo off setlocal for /f "usebackq tokens=*" %%a in (`dir /b /a:d`) do ( rem enter the directory pushd %%a echo...
-
how to install geckodriver on a windows system Answer: You can put it anywhere. 1. Download following driver Chrome : https://si...
-
在新加坡養狗須知 在新加坡養狗也是有很嚴格的規定的, 如果你住的是HDB(政府組屋), 只能養一隻小型狗(犬種有規定). 如果是住condo可以養兩隻, 而且狗兒是要申請執照的. 如果你違反規定而被鄰居檢舉, 政府有權當場帶走你的狗而且科以五千新幣的罰款. 如...
-
現在網路地圖應用越來越多,可是很多時候會遇到沒有網路狀況,這個時候Google Map、Open Street Map、 Bind MAP 等等都是無法使用的。 但是我們又不太可能像Google它們一樣架出一個GeoServer然後有很多的圖資,這樣的情況下就需要離線地圖, ...
No comments:
Post a Comment