Ask HN: Why are we not using debuggers more?
11–20 of 48 posts
Re: Ask HN: Why are we not using debuggers more?
#12I love using the debugger but now I want one where I can rewind the program a few steps if I want to. The use case I have is to go back and forth trying out different combinations of variables on a section of code. Even if I could manually set a flag to store the program state at certain portions so I can return there, that would work great. Other than that, debuggers are very superior to print statements and such. Y…
Would you be willing to use one of those?
Re: Ask HN: Why are we not using debuggers more?
#13Re: Ask HN: Why are we not using debuggers more?
#14I know that "remote debugging" is a thing, but I would need to talk with our network guys about firewall exceptions to allow me to connect to the Kubernetes pod over port XYZ. That sounds like a hassle, and I'm not sure they'd allow it.
Re: Ask HN: Why are we not using debuggers more?
#15I'm getting more into using debuggers lately. They can really help they just take time to learn. As to why they are a last resort. For me it was just having to learn the debugger and also setting up the debugging environment. For every binary needs to be built with debugging symbols and any libraries you're wanting to step through you have to find the symbols for those too. Also I think it depends on how low level th…
Could you give some examples or languages/environments with "bad" debuggers?
Re: Ask HN: Why are we not using debuggers more?
#16In my case, it's a technical limitation: the code that I write runs on a remote computer, not my laptop. I know that "remote debugging" is a thing, but I would need to talk with our network guys about firewall exceptions to allow me to connect to the Kubernetes pod over port XYZ. That sounds like a hassle, and I'm not sure they'd allow it.
Re: Ask HN: Why are we not using debuggers more?
#17In my case, it's a technical limitation: the code that I write runs on a remote computer, not my laptop. I know that "remote debugging" is a thing, but I would need to talk with our network guys about firewall exceptions to allow me to connect to the Kubernetes pod over port XYZ. That sounds like a hassle, and I'm not sure they'd allow it.
I would guess that it also supports debugging.
Re: Ask HN: Why are we not using debuggers more?
#18If you force yourself to use the debugger more, you will in the process both familiarise yourself with it and iron out any configuration kinks. Learn those keyboard shortcuts, figure out how to make it autoconnect and break on exceptions, find out how to evaluate expressions on the fly, …
You + That tool = maybe goodness. Maybe not.
Re: Ask HN: Why are we not using debuggers more?
#19I love using the debugger but now I want one where I can rewind the program a few steps if I want to. The use case I have is to go back and forth trying out different combinations of variables on a section of code. Even if I could manually set a flag to store the program state at certain portions so I can return there, that would work great. Other than that, debuggers are very superior to print statements and such. Y…
There is actually a surprising amount of reverse debugging products out there, some are listed here: http://jakob.engbloms.se/archives/1564 Would you be willing to use one of those?
Re: Ask HN: Why are we not using debuggers more?
#20One nice property of asserts is that they keep working even when your attention is elsewhere.