MacOS Terminal doesnt show in-/output when debugging
-
Hi and welcome to devnet,
Did you try to debug directly on the Terminal ?
By the way, please post your code as text using the coding tags. This will allow people to more easily re-use it to test your issue.
-
Hi! Thank you very much for your reply!
First things first, here is the code i was using (even if I think the code is not the problem as terminal shows in-/output if i run the programm):
#include <iostream> using namespace std; int main(void) { //define variables int i = 0; int length, volume, surface, square; //user input cout << "Geben Sie eine ganze positive Zahl ein!" <<endl; cin >> i; //calculation length = i; square = length*length; surface = 6 * square; volume = square * length; //output cout << "Oberflaeche:" << surface <<endl; cout << "Volumen:" << volume <<endl; return 0; }
As my instructor told me, I have selected "Run in Terminal" in the project settings / run.
Therefore my terminal opens as soon as i click on "start debugging" but nothing happens in there.
I hope that answers your question? Do you have any tips how i can solve this? -
You misunderstood my question: what happens if you start Terminal manually and do the debugging directly from there ?
-
-
Looks like it's a Qt Creator issue.
Do you have the same if you debug a default Qt application ?
-
@slepp said in MacOS Terminal doesnt show in-/output when debugging:
Yes, same problem :-(
That's not a Qt default application. What I meant a default Qt widget application.
-
Hi,
On macOS syslog() must be use:#include <syslog.h> int main(int argc, char *argv[]) { syslog(LOG_ERR,"%s\n","hello"); return a.exec(); }
See: Here
-
@SGaist said in MacOS Terminal doesnt show in-/output when debugging:
Qt widget application
Oh sorry, now I tried to create a QT widget application, according to this guideline: https://doc.qt.io/qtcreator/creator-writing-program.html
When I debug with the terminal, nothing happens in there as well.
-
Which version of Xcode did you install ?
-
Looks like it might a bug.
Can you test the current beta version of Qt Creator ?
-
Then you should check the bug report system to see if there's something related there.