Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Debugging & Exploring Node.js.pdf
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
A.J.
July 04, 2018
Programming
82
0
Share
Debugging & Exploring Node.js.pdf
A.J.
July 04, 2018
Other Decks in Programming
See All in Programming
Back to the roots of date
jinroq
0
680
20年以上続くプロダクトでも使い続けられる静的解析ツールを求めて
matsuo_atsushi
0
130
JOAI2026 1st solution - heron0519 -
heron0519
0
170
From Formal Specification to Property Based Test
ohbarye
0
710
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
130
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
190
Vibe NLP for Applied NLP
inesmontani
PRO
0
590
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
490
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
460
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.3k
GoogleCloudとterraform完全に理解した
terisuke
1
190
実践ハーネスエンジニアリング:ステアリングループを実例から読み解く / Practical Harness Engineering: Understanding Steering Loops Through Real-World Examples
nrslib
3
2.3k
Featured
See All Featured
Visualization
eitanlees
150
17k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
54k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
220
Music & Morning Musume
bryan
47
7.2k
Darren the Foodie - Storyboard
khoart
PRO
3
3.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Optimizing for Happiness
mojombo
378
71k
Agile that works and the tools we love
rasmusluckow
331
21k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
450
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Transcript
Debugging & Exploring Node.js Beyond `console.log`
Agenda • What's wrong with `console.log`? • The (perhaps not
so) golden age of IDEs • The Inspector Protocol • Talk is cheap, let's code
So, what's wrong with `console.log`? spoiler: nothing
Sometimes there's a better way
None
ever heard about breakpoints and call stack?
None
HOLY JESUS WHERE DID IT COME FROM???
None
None
Oops, forgot to use `JSON.stringify`
We can do better
DISCLAIMER
THIS TALK IS ABOUT VISUAL AND INTERACTIVE DEBUGGING
THIS TALK IS ABOUT VISUAL AND INTERACTIVE DEBUGGING sorry gdb
The golden age of IDEs
Eclipse
None
Visual Studio (2005)
None
PyCharm
None
Side note Integrated Development Environment
Side note Integrated Development Environment
Side note Interactive Development Environment
Inventing on principle
https://hacks.mozilla.org/2012/04/bret-victors-inventing-on-principle-and-a- few-things-it-inspired/ Bret’s big principle is that “creators need an
immediate connection to what they create” and shows that right now in most cases this connection is broken. We write code, we compile, we load in a browser and we see the result. That is not immediate but a two steps removed way of creating.
Luna Lang
https://vimeo.com/250833157
The Inspector Protocol
The Inspector Protocol • Node.js has a TCP-based built-in debugger
that has been deprecated in favor of the Chromium Debugging Protocol, since version 7.7.0
The Inspector Protocol • Dead simple, just spawn node.js with
the `--inspect` flag and attach a debugger
None
Talk is cheap Let's code