SlideShare a Scribd company logo
Debugging
A Step Away from the “console”
Adam Weeks, Cisco Webex, Orlando, Florida
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
How do you
know your
code works?
console.log?
function myCode() {
const one = 1;
const two = '2';
const onePlusTwo = one + two;
console.log(onePlusTwo);
}
Debugging, a step away from the console
Debugging, a step away from the console
function myCode() {
const one = 1;
console.log(one);
const two = '2';
console.log(two);
const onePlusTwo = one + two;
console.log(onePlusTwo);
console.log(one + two);
}
function myCode() {
const one = 1;
console.log(one);
const two = '2';
console.log(two);
const onePlusTwo = one + two;
console.log(onePlusTwo);
console.log(one + two);
}
function myCode() {
const one = 1;
console.log(one);
const two = '2';
console.log(two);
const onePlusTwo = one + two;
console.log(onePlusTwo);
console.log(one + two);
}
function myCode() {
const one = 1;
console.log(one);
const two = '2';
console.log(two);
const onePlusTwo = one + two;
console.log(onePlusTwo);
console.log(one + two);
}
Debugging, a step away from the console
Debugging, a step away from the console
Debugging?
Debugging, a step away from the console
Debugging, a step away from the console
Breakpoints
How to pause your code to debug
“debugger;” statement
Insert “debugger;” statement
function myCode() {
const one = 1;
console.log(one);
const two = '2';
console.log(two);
const onePlusTwo = one + two;
debugger;
console.log(onePlusTwo);
console.log(one + two);
}
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Manual Breakpoints
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Conditional Breakpoints
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Uncaught Exceptions
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Debugging, a step away from the console
Thanks!
@adamweeks

More Related Content

What's hot (20)

PDF
Ns2: OTCL - PArt II
Ajit Nayak
 
PDF
NS2: AWK and GNUplot - PArt III
Ajit Nayak
 
PDF
Add Some Fun to Your Functional Programming With RXJS
Ryan Anklam
 
PDF
C# Assignmet Help
Programming Homework Help
 
PDF
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
OdessaJS Conf
 
PDF
Understanding the nodejs event loop
Saurabh Kumar
 
PPTX
Angular2 rxjs
Christoffer Noring
 
PDF
Mozilla とブラウザゲーム
Noritada Shimizu
 
PDF
Project_Euler_No_104_Pandigital_Fibonacci_ends
? ?
 
PDF
Yurii Shevtsov "V8 + libuv = Node.js. Under the hood"
OdessaJS Conf
 
PPTX
The State of JavaScript
Domenic Denicola
 
PDF
Js interpreter interpreted
Martha Schumann
 
PPT
NS2: Binding C++ and OTcl variables
Teerawat Issariyakul
 
KEY
Grand centraldispatch
Yuumi Yoshida
 
DOCX
Import java
Vinay Dixit
 
PPTX
A Seminar Presentation at the Missouri S&T in Rolla, MO
Missouri S&T
 
PDF
Broken windows de práticas ágeis
Cecilia Fernandes
 
PDF
Tracing and awk in ns2
Pradeep Kumar TS
 
PPTX
Blockchain and smart contracts day 2
Gene Leybzon
 
PDF
Data structure programs in c++
mmirfan
 
Ns2: OTCL - PArt II
Ajit Nayak
 
NS2: AWK and GNUplot - PArt III
Ajit Nayak
 
Add Some Fun to Your Functional Programming With RXJS
Ryan Anklam
 
C# Assignmet Help
Programming Homework Help
 
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
OdessaJS Conf
 
Understanding the nodejs event loop
Saurabh Kumar
 
Angular2 rxjs
Christoffer Noring
 
Mozilla とブラウザゲーム
Noritada Shimizu
 
Project_Euler_No_104_Pandigital_Fibonacci_ends
? ?
 
Yurii Shevtsov "V8 + libuv = Node.js. Under the hood"
OdessaJS Conf
 
The State of JavaScript
Domenic Denicola
 
Js interpreter interpreted
Martha Schumann
 
NS2: Binding C++ and OTcl variables
Teerawat Issariyakul
 
Grand centraldispatch
Yuumi Yoshida
 
Import java
Vinay Dixit
 
A Seminar Presentation at the Missouri S&T in Rolla, MO
Missouri S&T
 
Broken windows de práticas ágeis
Cecilia Fernandes
 
Tracing and awk in ns2
Pradeep Kumar TS
 
Blockchain and smart contracts day 2
Gene Leybzon
 
Data structure programs in c++
mmirfan
 

Similar to Debugging, a step away from the console (20)

PPTX
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
Andrey Karpov
 
PDF
4Developers: Michał Szczepanik- Kotlin - Let’s ketchup it
PROIDEA
 
PDF
IL2CPP: Debugging and Profiling
joncham
 
PPTX
Static analysis of C++ source code
Andrey Karpov
 
PPTX
Static analysis of C++ source code
PVS-Studio
 
PDF
LISA QooxdooTutorial Slides
Tobias Oetiker
 
PDF
Midiendo la calidad de código en WTF/Min (Revisado EUI Abril 2014)
David Gómez García
 
PDF
CODEsign 2015
Max Kleiner
 
PPTX
Chapter i c#(console application and programming)
Chhom Karath
 
PPT
Whats new in_csharp4
Abed Bukhari
 
PDF
RxJava on Android
Dustin Graham
 
PDF
Deterministic simulation testing
FoundationDB
 
PDF
Staging driver sins
Stephen Hemminger
 
PPTX
PVS-Studio, a solution for resource intensive applications development
OOO "Program Verification Systems"
 
DOCX
.net progrmming part2
Dr.M.Karthika parthasarathy
 
PDF
Yoyak ScalaDays 2015
ihji
 
PDF
Pablo Magaz | ECMAScript 2018 y más allá | Codemotion Madrid 2018
Codemotion
 
PPTX
From clever code to better code
Dror Helper
 
PDF
PHP Static Code Review
Damien Seguy
 
PDF
Zero, one, two, Freddy's coming for you
Andrey Karpov
 
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
Andrey Karpov
 
4Developers: Michał Szczepanik- Kotlin - Let’s ketchup it
PROIDEA
 
IL2CPP: Debugging and Profiling
joncham
 
Static analysis of C++ source code
Andrey Karpov
 
Static analysis of C++ source code
PVS-Studio
 
LISA QooxdooTutorial Slides
Tobias Oetiker
 
Midiendo la calidad de código en WTF/Min (Revisado EUI Abril 2014)
David Gómez García
 
CODEsign 2015
Max Kleiner
 
Chapter i c#(console application and programming)
Chhom Karath
 
Whats new in_csharp4
Abed Bukhari
 
RxJava on Android
Dustin Graham
 
Deterministic simulation testing
FoundationDB
 
Staging driver sins
Stephen Hemminger
 
PVS-Studio, a solution for resource intensive applications development
OOO "Program Verification Systems"
 
.net progrmming part2
Dr.M.Karthika parthasarathy
 
Yoyak ScalaDays 2015
ihji
 
Pablo Magaz | ECMAScript 2018 y más allá | Codemotion Madrid 2018
Codemotion
 
From clever code to better code
Dror Helper
 
PHP Static Code Review
Damien Seguy
 
Zero, one, two, Freddy's coming for you
Andrey Karpov
 
Ad

Recently uploaded (20)

PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
July Patch Tuesday
Ivanti
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
July Patch Tuesday
Ivanti
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Ad

Debugging, a step away from the console