repeating's blog

By repeating, history, 6 years ago, In English

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?

  • Vote: I like it
  • +49
  • Vote: I do not like it

| Write comment?
»
6 years ago, # |
Rev. 2   Vote: I like it +10 Vote: I do not like it

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 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

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

      • »
        »
        »
        »
        6 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        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 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          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 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    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 years ago, # ^ |
        Vote: I like it -13 Vote: I do not like it

      where i can get FAST Clion version?

      Somewhere in the Neverland.

»
6 years ago, # |
  Vote: I like it +26 Vote: I do not like it

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 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

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

»
6 years ago, # |
Rev. 3   Vote: I like it +3 Vote: I do not like it

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 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.

    • »
      »
      »
      6 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      The "lightweight" is comparing with Visual Studio,sorry for that.

  • »
    »
    6 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Yes, I love Visual Studio too. But it can test and debug only if you create a project.

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    lightweight

    Yes, just a lightweight Electron app. It consumes no more then 2GB RAM per open file, I promise!

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    install io-run extension it will make things easier for you

»
6 years ago, # |
  Vote: I like it +75 Vote: I do not like it

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

Mostly because I don't know how to exit

»
6 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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 years ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    It's ugly :D

  • »
    »
    6 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    The autocomple is really bad if you have nested structures (it works correctly only for the first layer).

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    It freezes and crashes a lot.

»
6 years ago, # |
  Vote: I like it +29 Vote: I do not like it

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

»
6 years ago, # |
  Vote: I like it +5 Vote: I do not like it

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 years ago, # ^ |
      Vote: I like it +6 Vote: I do not like it

    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?

  • »
    »
    6 years ago, # ^ |
      Vote: I like it +27 Vote: I do not like it

    This sounds like a TV commercial.

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Intellij IDEA

»
6 years ago, # |
  Vote: I like it +8 Vote: I do not like it

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

»
6 years ago, # |
  Vote: I like it +9 Vote: I do not like it

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

»
6 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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

»
6 years ago, # |
Rev. 2   Vote: I like it +5 Vote: I do not like it

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 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

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 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
6 years ago, # |
  Vote: I like it +8 Vote: I do not like it

tourist would to use Far Manager as C++ IDE

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
6 years ago, # |
  Vote: I like it +14 Vote: I do not like it

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 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Atom

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    The only problem is that it doesn't support some features and functions of C++14 and above!

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      You can add new compilers in Dev-C++.

»
6 years ago, # |
  Vote: I like it +5 Vote: I do not like it

Dev C++

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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 years ago, # |
Rev. 5   Vote: I like it 0 Vote: I do not like it

Dev-c++

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Absolutely Dev c++! I like dev!

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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.