- Published on
How to debug in Vue?
- Authors
- Name
- Gene Zhang
Option 1: Use debugger statement
Insert the following line in your code where you want to break:
debugger
Option 2: Use Chrome Dev Console Sources tab
- Open the Chrome Dev Console.
- Go to the Sources tab.
- Find the file you want to debug.
- Click on the line number where you want to break.