javascript debugging tips & tricks

21
JavaScript Debugging Tips and Tricks C# Corner - Delhi Chapter 5th Sep 2015 Sunny Sharma

Upload: sunny-sharma

Post on 20-Jan-2017

52 views

Category:

Education


3 download

TRANSCRIPT

JavaScript Debugging

Tips and Tricks

C# Corner - Delhi Chapter 5th Sep 2015 Sunny Sharma

< About me />Sunny Sharma• Trainer / Author / Speaker• [email protected]

om• Twitter: @sunny_delhi

Common JavaScript Mistakes

Undefined Variable(s)

Misspelling

Case Sensitivity Issues

Incorrect Number of Closing Braces

Incorrect Number of Closing Parenthesis

Using Method as a Property

Missing “+” during concatenation

Unhandled NaN

Using Equals (=) Rather than Equality (==)

Debugging

alert();

console.log(“Hey!”);

try / catch / finally

Sequential Uncommenting

Developer Tools

Developer ToolsCommon Terms

• Console• Breakpoint• Step In• Step Over• Step out• Call Stack• Watch

Q & A?

Thank You!