3 ms·
I'd say most of the time the higher level the language the easier it would be to debug. For example, I can open a file, write to it and close it in three lines
by mneumegen 14y ago
I'd say most of the time the higher level the language the easier it would be to debug. For example, I can open a file, write to it and close it in three lines of ruby. Doing this properly in C would take at least 8 lines. Less code is one way of making software easier to debug.
- ZenoArrow 14y agoIn essence yes, higher level languages are easier to debug. However, higher level languages are a double edged sword in some cases with regards to debugging... Let's take Clojure for example. That's a high level language by anyone's standards, and the code can be made easy to reason about. However, due to being built on top of the JVM means that when dealing with bugs a knowledge of the JVM (and Java if you're using Java libraries) is beneficial. Now that the high level view doesn't tell you the full picture, you're making the search for the bug quite a bit more involved, as not only do you need to understand the bug at the level which its occurring, you need to fix it at a level abstracted away from the one where the bug can be seen. But by and large, yes, high level languages tend to be easier to debug due to smaller code bases.