1. 在node腳本中加上--inspect-brk 代碼會暫停在第一行 2. 打開chrome://inspect,打開Open dedicated DevTools for Node 在source欄可以看到代碼,進行單步執(zhí)行調試