TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Do you use a debugger?

15 点作者 karamazov大约 12 年前
If so, (or if not), for which languages?

20 条评论

yen223大约 12 年前
When I work with C#, I use a debugger all the time. Learning how to attach a debugger to a running process saves a lot of headaches in the long run.<p>On the other hand, when I work with Python, I rarely had to use a debugger. Python's grammar is so simple that simply <i>reading</i> through the code is usually enough to spot most errors.
zamalek大约 12 年前
Having been spoilt by the calibre of Microsoft debugging tools earlier on in my development career it's one of the very first things I get working when approaching new environments/languages. It's especially helpful when learning a language as experimentation is often a lot quicker than RTFM.
shortlived大约 12 年前
IF the problem lends itself to debugging then a hearty "YES!" is my answer. Eclipse/Java is my debugger of choice but there are also fine standalone debuggers like JSwat or even the command line debugger.
gurvinder大约 12 年前
how can you not use debugger and program/find defects. I mean for sure you can do print and alert, but that is highly inefficient way of debugging.
ZephyrP大约 12 年前
No, I wrote my own debugger.<p><a href="https://github.com/zv/zdb" rel="nofollow">https://github.com/zv/zdb</a><p>For "serious" stuff, I have a .gdbinit file that makes GDB <i>much</i> more usuable, check it out if you have time.<p><a href="https://raw.github.com/zv/dotfilez/master/gdbinit" rel="nofollow">https://raw.github.com/zv/dotfilez/master/gdbinit</a>
jk大约 12 年前
gdb. I work in system software, so cross platform debugger is what helps to catch issues easily.<p>edit: gdb to debug asm and C code
gesman大约 12 年前
Yes. Live, step by step debugging of fresh code is the best ever way to find hidden bugs that are otherwise undetectable by tests.
room271大约 12 年前
I (mostly) write Scala and have never used a debugger. I'm not aware of any of my immediate colleagues who use one either.
patforna大约 12 年前
For me, TDD, a REPL and the occasional console print statement almost completely eliminates the need for a debugger. That being said, I probably fire it up every couple of months when working on a java or .net project. #java #scala #ruby #javascript #.net
codewright大约 12 年前
Prolifically in Python, JavaScript, and Clojure (sorta. I find Ritz annoying.)
评论 #5557231 未加载
smilliken大约 12 年前
Bpython has a nice wrapper for pdb: <a href="https://pypi.python.org/pypi/bpython/0.11" rel="nofollow">https://pypi.python.org/pypi/bpython/0.11</a><p>This is the nicest python debugger I've used.
gobengo大约 12 年前
I'm surprised at how few frontend developers make use of JavaScript's 'debugger;' statement. I find it invaluable.
评论 #5563824 未加载
评论 #5556234 未加载
mayankj08大约 12 年前
Yes, I use debugger oftenly for GCC and I use GDB debugger for same.
raindrift大约 12 年前
Yep! The Chrome debugger for js, and pry-debugger for ruby.
webdisrupt大约 12 年前
With PHP...Xdebug which is incorporated in Netbeans IDE
nekitamo大约 12 年前
OllyDBG every day, for x86 assembler :)
Irishsteve大约 12 年前
But of course
kamaal大约 12 年前
On very few occasions have I ever faced a need to use a debugger.<p>Generally those situations are places where print statements are not allowed.
stray大约 12 年前
Of course!<p>Common Lisp's debugger, accessed via slime is the best thing since running water.<p>Also a big fan of WingIDE's debugger for python.
incawater大约 12 年前
Yes, I use debugger regularly.