Sunday, January 12, 2020

Debug with node

Cách 1: console.log

Cách 2:

  1. chạy node inspect
  2. vào chrome://inspect

muốn debug chỗ nào thì viết chữ "debugger" chỗ đó
có thể sử dụng được cả console cua chrome

No comments:

Post a Comment