How are you supposed to use text editors without debugging tools?

What I haven't been able to figure out is how I should be using a text editor like TextWrangler or Atom, as opposed to a full screen IDE like Xcode or Visual Studio. There are no debugging tools, so you can't know if you made a mistake, and they are not autocomplete (prebugging, heh heh), which makes mistakes much easier. I feel like I am missing something; how do people debug with a text editor workflow?

+3


source to share


3 answers


Using a text editor without debugging tools forces you to write beautiful code that works for the first time 100% of the time. Each line of code has been carefully crafted to do exactly what you expect it to do.

I personally use VIM for all my programs, it takes a while to learn, but it's definitely worth it. You end up writing code that's easy to read because you have to read and re-read the code before running it. Debugging is more than just clicking a button, and other software tells you what is wrong with yours. This is about a deep understanding of your code and what it does. I admit that sometimes finding the missing comma can be a pain, but the compromise is definitely worth it.



At the end of the day, it depends if you just want to run 800 lines of code per hour, or if you want to create software that is reliable and easily extensible by anyone.

+3


source


Atom and almost all are ide VIM ... their plugins https://atom.io/packages You set which plugins you want

I believe this is the strength of these editors. You decide which plugins you want.

For an atom, for example



linter https://atom.io/packages/linter is a tool for visualizing errors.

autocomplete https://atom.io/packages/autocomplete is an autocomplete tool.

+1


source


The only difference is that you have to compile by hand.
If the error occurred during compilation, the compiler will tell you, otherwise you must find and fix the error yourself.

For autocomplete it is still available in most text editors (Atom, notepad ++, etc.), however, it is not always as good as intellisense.

0


source







All Articles