Блог пользователя repeating

Автор repeating, история, 6 лет назад, По-английски

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?

  • Проголосовать: нравится
  • +49
  • Проголосовать: не нравится

»
6 лет назад, # |
Rev. 2   Проголосовать: нравится +10 Проголосовать: не нравится

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.

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I agree, plus there is jHelper. Also agree that it's RAM intensive and sometimes it freezes slightly for me

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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 :)

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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?

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    But Clion has some wrong error warning when using bits/stdc++.h and operator = for pair. Do you have anyway to deal with it?

    • »
      »
      »
      6 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Can you please specify what error warning you get (a screenshot maybe) ? It might be because of unused import error.

      • »
        »
        »
        »
        6 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        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.

        • »
          »
          »
          »
          »
          5 лет назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится

          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.

  • »
    »
    6 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    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.

»
6 лет назад, # |
  Проголосовать: нравится +26 Проголосовать: не нравится

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.

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thanks for the link! I've written my own messy parser for test cases but couldn't figure out how to submit solutions.

»
6 лет назад, # |
Rev. 3   Проголосовать: нравится +3 Проголосовать: не нравится

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.

»
6 лет назад, # |
  Проголосовать: нравится +75 Проголосовать: не нравится

One word — vim. I've been using it for almost 4 years now.

Mostly because I don't know how to exit

»
6 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

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.

»
6 лет назад, # |
  Проголосовать: нравится +29 Проголосовать: не нравится

Codeforces's custom test coz i'm lazy :/

»
6 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

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.

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Intellij IDEA

»
6 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

CodeLite is a good IDE, it resembles CodeBlocks but feels better.

»
6 лет назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

Am I the only notepad++ fan here? In my opinion it's by far the best editor I've ever used.

»
6 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

I use Microsoft Visual Studio 2017. It can test and debug. You can use Dev-C++ too. It is also a good IDE.

»
6 лет назад, # |
Rev. 2   Проголосовать: нравится +5 Проголосовать: не нравится

You can use :

1) Netbeans with MinGW

2) Eclipse CDT

3) Sublime Text with competitive programming setup -->see here

4)CLion (free for students)

»
6 лет назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

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 . :(

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Eclipse CDT is great in general. For competitive programming the simpler the better: so Code::Blocks, and debug using cout/cerr

»
6 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

tourist would to use Far Manager as C++ IDE

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Sublime Text for coding and tracing. For complex debugging, I use Visual Studio code linked to GDB.

»
6 лет назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

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 (int i = 0; i < |; i++) {

}

For debugging and testing I don't use any special things.

»
6 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Atom

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

DEV c++ The most widely used IDE in China. And I like it.

»
6 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

Dev C++

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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 .

»
4 года назад, # |
Rev. 5   Проголосовать: нравится 0 Проголосовать: не нравится

Dev-c++

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Absolutely Dev c++! I like dev!

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.