Handmade Hero»Forums»Code
12 posts
clion multiplatform c++ ide (debugger for linux)
Edited by Erlend on
i heard you mentioned there was no debugger for linux. jetbrains (which makes intellij, resharper, appcode++) recently released clion (still in beta), an multiplatform c/c++ ide for win,mac,linux. have you tried it out? it has all the excellent features that their other ide's have, like refactorings and code completion, debugger and uses cmake for projects.
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
clion multiplatform c++ ide (debugger for linux)
Well, for starters, does it debug externally built executables? Since I edit and build in Emacs, it would have to be something that can debug executables that it did not build inside the IDE for me to even try it. I haven't looked at it so I'm not sure what its features are...

- Casey
12 posts
clion multiplatform c++ ide (debugger for linux)
Edited by Erlend on
I asked the question and it seems it does not support that feature now, but it might later.

Found some notes on debugging using gdb on emacs though.
78 posts
None
clion multiplatform c++ ide (debugger for linux)
Edited by Mór on
That feature appears to have been added

https://blog.jetbrains.com/clion/2015/05/debug-clion/
https://blog.jetbrains.com/clion/2016/01/attach-to-local-process/

I've been demoing it and like it so far, but I'm no expert. Anyone here use it? What do you think? Is it suitable for following Hand Made Hero?

Just found out it doesn't show assembly code yet, so its back to VS for me.
78 posts
None
clion multiplatform c++ ide (debugger for linux)
Edited by Mór on
I made a CMake project to work with CLion and Episode 21's Loading Game Code Dynamically. Just unzip it over Casey's project and it should work.

https://ufile.io/ecb8
Doeke
33 posts
None
clion multiplatform c++ ide (debugger for linux)
I kinda like CLion, but for debugging it's really bad. There is also no memory view and you can't see the assembly code.
Once they have that I will start using CLion.
78 posts
None
clion multiplatform c++ ide (debugger for linux)
Edited by Mór on
clankill3r
I kinda like CLion, but for debugging it's really bad. There is also no memory view and you can't see the assembly code.
Once they have that I will start using CLion.


Yeah, I asked them when I was demoing it and they responded with these links. I don't think you have to own it to put in feature requests, so the more that ask the better.

https://youtrack.jetbrains.com/issue/CPP-1748
https://youtrack.jetbrains.com/issue/CPP-3567


Forgot to mention above, I tried a few MinGW setups, had problems until I found this:
http://tdm-gcc.tdragon.net/
Mārtiņš Možeiko
2357 posts / 2 projects
clion multiplatform c++ ide (debugger for linux)
I have used all kinds of mingw ports - msys, mingw-w64, tdm, nuwen, msys2.
And I highly recommend msys2 if you want mingw. It comes with pacman package manager (from ArchLinux), so you can keep gcc/clang installation up to date and also install additional FOSS utilities if you want (including gdb and more).
Marc Costa
65 posts
clion multiplatform c++ ide (debugger for linux)
mmozeiko
I have used all kinds of mingw ports - msys, mingw-w64, tdm, nuwen, msys2.
And I highly recommend msys2 if you want mingw. It comes with pacman package manager (from ArchLinux), so you can keep gcc/clang installation up to date and also install additional FOSS utilities if you want (including gdb and more).


I tried msys2 a while ago, but I use symlinks to keep my dotfiles (.vimrc, .gitconfig, etc..) up to date and msys2 doesn't have good support for them. I'm just curious, have you found a way to work with these files reliably under msys2? Or do you just overwrite them after updating?

To clarify, I keep all my config files in a repository, cloned locally in a 'dotfiles' folder. I have a setup script that sets up the symlinks for the first time (~/.dotfiles/vim/vimrc -> ~/.vimrc, ~/.dotfiles/git/gitconfig -> ~/.gitconfig, etc...) and then I can keep changing the files in the repository and everything is kept up to date without running the setup script again.
Mārtiņš Možeiko
2357 posts / 2 projects
clion multiplatform c++ ide (debugger for linux)
I just copy my 4 or 5 config files over. I don't reinstall stuff very often, so it's not a big deal.
Josh Filstrup
14 posts / 1 project
beep boop
clion multiplatform c++ ide (debugger for linux)
I've been trying it out for a big project I work on(500k LOC) to help manage some of the complexity when I need to make sweeping changes to the system. For that, its been pretty good, and it has vim emulation, so I'm getting a generally better experience than my default which is plain vim.
78 posts
None
clion multiplatform c++ ide (debugger for linux)
Edited by Mór on
Hey just a quick update on this. CLion does not report bugs properly in unity builds, which makes it about as useful as an ordinary text editor when following Handmade Hero.

Here's the issue in their tracker if you want to up vote it. Very little interest in this feature unfortunately.

https://youtrack.jetbrains.com/issue/OC-5581