Wednesday, August 21, 2019

Chrome javascript debug tip (For Windows platform)

1. To find a javascript or typescript file in the whole source file tree, use
ctrl+p
or 
ctrl+o
and then type part of the file name

2. To search a particular key word in the whole project's js and html source tree, use
ctrl+ shift + f

3. (less useful) run a command
ctrl + shift + p

4. open javascript debugger
F12

5. check the return value of a method
When breaking in a line of code as 
return callSomeFunction(...);
click step over icon, then the return value will show in the debugger's local panel as below


No comments:

Post a Comment