What is a better IDE for QT
-
- Run to line: Sets a temporary breakpoint on the line and stops when the program reaches this breakpoint
- Jump to ĺine: Sets the program counter to this line, skipping all instructions that are between the current program counter and the target. Use that with cause, because it changes the program flow and can have any possible side effects.
Regards
@aha_1980 Hi.
Not sure what/why you are telling me? I know this as I wrote, since I use them all the time! Was trying to make @SimonSchroeder aware that if he wants one of these (on re-read perhaps the Run to line) they are available in Creator debugging as they are in VS. -
QtCreator is buggy beyond imagination. Visual Studio Code needs some more setup, but long term is worth of try
@mmertama said in What is a better IDE for QT:
QtCreator is buggy beyond imagination. Visual Studio Code needs some more setup, but long term is worth of try
[cmake] CMake Error: Error: generator : Ninja
[cmake] Does not match the generator used previously: Ninja
[cmake] Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory..... The second generator may have an extra space? :-o
-
I'm using Qt Creator. In some cases, especially when using an external library, debugging or finding the cause of a crash becomes impossible. I've tried using Visual Studio but haven't been very successful. Which IDE do you think is more professional, and why?
@Joe-von-Habsburg For programmer not significant how ide use. I am know developer, who use nano editor and for professional education.
-
@Joe-von-Habsburg For programmer not significant how ide use. I am know developer, who use nano editor and for professional education.
sudo echo "You funny :)" -
J Joe von Habsburg has marked this topic as solved
-
@SimonSchroeder
Thank you, interesting. Under Linux Creator/gdb I have basically no visualizers for Qt stuff. I do not have the Qt source code installed. I agree you cannot enter even the most basic expression for evaluation, only straight variables. So I cannot view a particular e.g.QListindex, as neither.at(10)nor[10]are allowed :( But I limp through. I have always assumed this is to do with not having Qt sources, if it could be set up to work somehow instead I would love to know...?One additional advantage of VS over Qt Creator for debugging is that I can just skip to a certain line by just clicking there without having to set a breakpoint (and then immediately removing it afterwards). This is really helpful for jumping over loops. Other IDEs also have this feature.
Right-click in "breakpoint" gutter/margin to left of your code, on context menu only (no shortcut assigned) there is
Jump to line XXX, which I assume is what you mean? Otherwise there is alsoRun to line XXX, so you can either run to a line or skip everything up to a line with a single click and no breakpoint add/remove? Both of these available in Creator as in VS.@JonB said in What is a better IDE for QT:
Otherwise there is also Run to line XXX, so you can either run to a line or skip everything up to a line with a single click and no breakpoint add/remove?
Alright, I didn't know about this one. But, in this respect VS is still better because it is not hidden in a context menu ;-). It's already bad enough that I need to switch from my beloved keyboard to the mouse. An extra click is just too much... (This is slightly tongue in cheek–don't take it too seriously.)
-
@SimonSchroeder Have a look at https://doc.qt.io/qtcreator/creator-how-to-step-through-code.html
Run to linehas the shortcut Ctrl+F10 ;) -
@JonB said in What is a better IDE for QT:
Otherwise there is also Run to line XXX, so you can either run to a line or skip everything up to a line with a single click and no breakpoint add/remove?
Alright, I didn't know about this one. But, in this respect VS is still better because it is not hidden in a context menu ;-). It's already bad enough that I need to switch from my beloved keyboard to the mouse. An extra click is just too much... (This is slightly tongue in cheek–don't take it too seriously.)
@SimonSchroeder
You have to indicate somehow for both "Run to line" & "Jump to line" which line you want it to continue to! Creator allows it via a right-click on the desired line. Unless your VS can either (a) eye-read or (b) mind-read you will still have to tell it that, somehow... ;-)If you want to stick with keyboard you can move the cursor there and press as @aha_1980 has said (existing shortcut) or add your own key if you want one for Jump to line, which is less common.
-
@SimonSchroeder
You have to indicate somehow for both "Run to line" & "Jump to line" which line you want it to continue to! Creator allows it via a right-click on the desired line. Unless your VS can either (a) eye-read or (b) mind-read you will still have to tell it that, somehow... ;-)If you want to stick with keyboard you can move the cursor there and press as @aha_1980 has said (existing shortcut) or add your own key if you want one for Jump to line, which is less common.
@JonB said in What is a better IDE for QT:
You have to indicate somehow for both "Run to line" & "Jump to line" which line you want it to continue to!
You are right. VS shows a little icon on the line you are currently hovering with the mouse. So, I just need a single click after locating the line whereas in Qt Creator I need to first right click and then pick the correct menu entry and left click. While I'm debugging I want as little friction as possible so as to not loose the context of what is going on.
@aha_1980 said in What is a better IDE for QT:
Run to line has the shortcut Ctrl+F10 ;)
I'm gonna remember this and probably use it the next time I have a smaller program which I can debug in Qt Creator.
-
@JonB said in What is a better IDE for QT:
You have to indicate somehow for both "Run to line" & "Jump to line" which line you want it to continue to!
You are right. VS shows a little icon on the line you are currently hovering with the mouse. So, I just need a single click after locating the line whereas in Qt Creator I need to first right click and then pick the correct menu entry and left click. While I'm debugging I want as little friction as possible so as to not loose the context of what is going on.
@aha_1980 said in What is a better IDE for QT:
Run to line has the shortcut Ctrl+F10 ;)
I'm gonna remember this and probably use it the next time I have a smaller program which I can debug in Qt Creator.
@SimonSchroeder said in What is a better IDE for QT:
So, I just need a single click after locating the line whereas in Qt Creator I need to first right click and then pick the correct menu entry and left click.
Point taken, so a little QoL issue :) Use/assign a keyboard shortcut and you are down to one click (or move cursor to line with arrow keys) and one keypress :)