Debug Articles

RSS feed

11 articles found in Debug

Remote Debugging Webpages In iOS Safari
Remote Debugging Webpages In iOS Safari

Learn how to remote debug webpages in iOS Safari using Web Inspector on Mac, plus workarounds for Windows and Linux with JSConsole and emulators.

Saif Sadiq

Saif Sadiq

August 27, 2018

7 min read

A Comprehensive Guide on Reference Error: JavaScript
A Comprehensive Guide on Reference Error: JavaScript

Learn what causes a JavaScript ReferenceError, common triggers like undeclared variables and temporal dead zones, and how to fix each with code examples.

Saif Sadiq

Saif Sadiq

April 17, 2018

5 min read

SyntaxError: Unexpected Reserved Word
SyntaxError: Unexpected Reserved Word

SyntaxError: Unexpected Reserved Word means a reserved keyword such as let, static, or yield was used as a variable name. Learn the causes and how to fix it.

Robin Jangu

Robin Jangu

April 16, 2018

4 min read

Forgotten Callbacks, Getting a Closure
Forgotten Callbacks, Getting a Closure

Closures and forgotten callbacks keep DOM nodes alive and leak memory in JavaScript. Learn how the leak forms and how to release the references that cause it.

Robin Jangu

Robin Jangu

April 12, 2018

5 min read

Why Global Variables Are Bad (And How to Avoid Them)
Why Global Variables Are Bad (And How to Avoid Them)

Global variables cause memory leaks, tight coupling, namespace pollution, and flaky tests. Learn why global variables are bad and how to avoid them.

Robin Jangu

Robin Jangu

April 9, 2018

5 min read

TypeError: JavaScript
TypeError: JavaScript

TypeError in JavaScript is thrown when you run an operation on a value of an incompatible type. Learn the common causes, real fixes, and how to prevent them.

Saif Sadiq

Saif Sadiq

April 6, 2018

6 min read

SyntaxError: JSON.parse: bad parsing
SyntaxError: JSON.parse: bad parsing

JSON.parse() throws a SyntaxError when input breaks JSON syntax, such as a trailing comma or missing brace. Learn the causes and how to catch them early.

Deeksha Agarwal

Deeksha Agarwal

April 5, 2018

6 min read

Complete Guide To Memory Leakage Testing In JavaScript
Complete Guide To Memory Leakage Testing In JavaScript

Learn how to debug memory leaks in JavaScript with Chrome DevTools heap snapshots, allocation timelines, and Mark and Sweep garbage collection basics.

Robin Jangu

Robin Jangu

March 31, 2018

7 min read

JavaScript Script Errors Demystified: Troubleshooting Guide
JavaScript Script Errors Demystified: Troubleshooting Guide

Get a complete guide on script errors in JavaScript. Learn best practices to prevent, detect, and resolve errors for optimized code performance.

Deeksha Agarwal

Deeksha Agarwal

March 29, 2018

5 min read

Range Error in JavaScript
Range Error in JavaScript

A RangeError in JavaScript happens from runaway recursion, a numeric method like toFixed() exceeding its range, or an invalid array length. Causes and fixes.

Robin Jangu

Robin Jangu

March 28, 2018

5 min read

Understanding Uncaught TypeError In JavaScript
Understanding Uncaught TypeError In JavaScript

Learn & understand what is Uncaught TypeError in JavaScript through this guide. Debug the Uncaught TypeError and make sure your scripts are error free.

Deeksha Agarwal

Deeksha Agarwal

March 27, 2018

5 min read