Important: Please read the Qt Code of Conduct -

Catching an exeption for debugging a Qt application

  • Hallo,
    Anyone know if it is possible to catch an exeption and print it?
    I mean, my application sometimes crashes depending on which platform it is running, I'd like find out where is the weak point in my code.
    I can't use debugger or IDE like QtCreator, I've already tested in my environmet and I have no problem, I just want install my software in another PC and print in a file the exeption.


  • Moderators

    Qt does not throw any exceptions anywhere in it's code. If you want to catch the output, run the application from command line and see what it prints out. Or get the stack trace.

Log in to reply