TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Print is your best debugging tool

3 pointsby Hamattialmost 3 years ago

2 comments

Bostonianalmost 3 years ago
You can add a line of code to print a few variables, but it may be easier to add a breakpoint at the same place and use the &quot;info locals&quot; and &quot;info args&quot; commands of gdb to display local variables and arguments.<p>When do people use print statements vs. gdb? I use print statements out of inertia but wonder if I should gdb more.
评论 #31666654 未加载
pseingatlalmost 3 years ago
How would you use this for LaTeX?
评论 #31666625 未加载