Hi!
I use Code::Blocks 16.01 for coding in C++, but I don't see it as a good platform for debugging and testing, and I want to change it.
Which IDE do think can help me with debugging and testing?
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
2 | maomao90 | 163 |
4 | atcoder_official | 161 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | nor | 153 |
9 | Dominater069 | 153 |
Hi!
I use Code::Blocks 16.01 for coding in C++, but I don't see it as a good platform for debugging and testing, and I want to change it.
Which IDE do think can help me with debugging and testing?
Название |
---|
Although these days I mostly use Sublime Text 3 for contests but I have started using CLion again only because of OpenGL (because of it's weird naming conventions). The latest version of CLion is very stable, fast and has great intellisense, autocompletion and other features you need. Debugging is a piece of cake too on CLion, you can either use its GUI or command line GDB to debug. CMake only makes it better. But it sucks up ram quite easily.
I agree, plus there is jHelper. Also agree that it's RAM intensive and sometimes it freezes slightly for me
I too use CLion.. But I have a problem. It frequently displays error saying Executable file could not be linked. I have configured Cygwin. Any help or tips would be helpful. Thanks :)
I shifted to clion only to find that it lags a lot on my computer. I have one problem in sublime. When my program is stuck in infinite loop I cannot even open the terminal and kill the process and I have to manually force shut down. Is there any workaround to this? Maybe stopping the program after say 5 seconds of execution?
timeout 5s a.out
Works on Linux.Thank you :)
But Clion has some wrong error warning when using bits/stdc++.h and operator = for pair. Do you have anyway to deal with it?
Can you please specify what error warning you get (a screenshot maybe) ? It might be because of unused import error.
I do not know how to upload image to Codeforces, but there is a link to the error report page: https://youtrack.jetbrains.com/issue/CPP-8766.
That is for pair. For the wrong warning when using bits/stdc++.h is the use of swap function. It keeps showing error warning.
I had the same problem with my CLion installation months ago. But now the bug have been fixed. Try to upgrade to the latest release, and you'll be free of that annoying warning.
where i can get FAST Clion version? I used this IDE first time in last round, (coding about 6 years in codeblocks before), and it very freezy and slow. and funniest moment is when i press "build and run" sometimes its only build, not both, very annoying.
Somewhere in the Neverland.
Vim. Not an IDE per se, but you can definitely extend it to act like one. E.g. add support for code completion, error messages, debugging.
Also I can only recommend cfparser.vim, which allow to download test cases, compile your program, run it with all test cases, and even submit it.
Thanks for the link! I've written my own messy parser for test cases but couldn't figure out how to submit solutions.
Visual Studio Code is suggested.
- Clean and lightweight.
- Friendly interface.
- Powerful debugging.
- Integrated terminal.
- Integrated Git.
- All kinds of extensions.
It is really the best IDE I've ever seen.
VS Code is awesome and I use it, but I will eliminate "lightweight" from your list. It's an Electron application after all and many times I've mistyped or lost time because the VIM plugin was lagging.
The "lightweight" is comparing with Visual Studio,sorry for that.
Yes, I love Visual Studio too. But it can test and debug only if you create a project.
I mean Visual Studio Code,not Visual Studio.
They are quite different.
I am using Visual Studio Code now, but I don't how to compile because this is my first use.
You can view these documents:
- for C++: https://code.visualstudio.com/docs/languages/cpp
- for Python: https://code.visualstudio.com/docs/languages/python
All right. Thank you very much.
Yes, just a lightweight Electron app. It consumes no more then 2GB RAM per open file, I promise!
install io-run extension it will make things easier for you
One word — vim. I've been using it for almost 4 years now.
Mostly because I don't know how to exit
hahaha.
Can I get your thoughts about why you don't like CodeBlocks?
P.S. I also use CodeBlocks 16.01 and find it very friendly and comfortable in coding and debugging process.
It's ugly :D
The autocomple is really bad if you have nested structures (it works correctly only for the first layer).
It freezes and crashes a lot.
Codeforces's custom test coz i'm lazy :/
You can use Far-Manager. Far-Manager is comfortable program for programming and debugging. It has many good functions. On Far-Manager you can generate tests for code. You can govern computer with Far-Manager. As I know you can download Far-Manager for those operating systems: UBUNTU, WINDOWS.
How is it comfortable for debugging? I use Far Manager and when debugging I have to print the values of my variables in the middle of the program, am I missing something?
You can use FREOPEN (on c++).
This sounds like a TV commercial.
Intellij IDEA
CodeLite is a good IDE, it resembles CodeBlocks but feels better.
Am I the only notepad++ fan here? In my opinion it's by far the best editor I've ever used.
Sadly yes.
I use Microsoft Visual Studio 2017. It can test and debug. You can use Dev-C++ too. It is also a good IDE.
Oh,Dev-C++ is too difficult for debugging.
You can use :
1) Netbeans with MinGW
2) Eclipse CDT
3) Sublime Text with competitive programming setup -->see here
4)CLion (free for students)
CodeLite. It is free and open source and light-weight and cross-platform and supports C,C++,PHP and Node.js(just like codeblocks), and it has updates frequently (as for codeblocks , it has not had updates for years) , so it supports new standards (for example , c++17 code-completion features) while codeblocks doesn't. (BTW, you can use it as a editor for other languages , because it supports code highlighting for countless languages) I've used both codeblocks and codelite , and I think codelite is more "considerate". For example , it has pre-installed stl_printer for gdb (so that you can see inside STL templates while debugging), and its code-completion & code-highlighting & parentheses-matching&... are smarter. Try it out ,and you will see. The only problem is that, there isn't much introduction about using it on the internet(in my native language) , so it may be extremely difficult to use at the beginning.
upd: I use codelite on 64-bit windows , and it seems that the only c++ compilers which codelite supports perfectly , are mingw64 compilers. As for others , you can't debug STL with them . :(
Eclipse CDT is great in general. For competitive programming the simpler the better: so Code::Blocks, and debug using cout/cerr
tourist would to use Far Manager as C++ IDE
Sublime Text for coding and tracing. For complex debugging, I use Visual Studio code linked to GDB.
My favourite IDE is Geany. It's simple and doesn't have many features, but I like using it in competitive programming. It also supports many languages. There is autocompletion, but not very good. One of the good feature is snippets that can be used to autocomplete some language constructs. E. g. if
for + <Tab>
is typed, the code will be expanded into something like this:For debugging and testing I don't use any special things.
Atom
DEV c++ The most widely used IDE in China. And I like it.
The only problem is that it doesn't support some features and functions of C++14 and above!
You can add new compilers in Dev-C++.
Dev C++
I am using Clion compiler form Jetbrains Company . It compiles graphics programs . but id doesn't work on windows 32-bit OS . Good Luck At the ACM .
Dev-c++
Absolutely Dev c++! I like dev!
I'm using CP Editor now.
I can't say it's already better than Dev-C++, but by using it, I can make feature requests and find bugs, or even fix them by myself. I believe one day it will be awesome for competitive programmers.