Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting a backtrace out of an event handler

Getting a backtrace out of an event handler

Scheduled Pinned Locked Moved Unsolved General and Desktop
debuggingdebuggerexception
1 Posts 1 Posters 797 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tinloaf
    wrote on 6 Nov 2015, 15:47 last edited by
    #1

    Hi,

    in my QApplication, some exception is thrown from inside an event handler. Now, Qt told me to reimplement QApplication::notify(), which I did. There I can now catch that exception, but I would rather be able to start debugging at that point. Since the exception has been rethrown, my backtrace looks not very helpful:

    0	raise			0x7ffff4e64e97	
    1	abort			0x7ffff4e661da	
    2	__gnu_cxx::__verbose_terminate_handler()			0x7ffff57380bd	
    3	??			0x7ffff5735f06	
    4	std::terminate()			0x7ffff5735f51	
    5	__cxa_rethrow			0x7ffff57361b6	
    6	QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)			0x7ffff5d804f9	
    7	QCoreApplication::exec()			0x7ffff5d85769	
    8	main	main.cpp	16	0x40be24	
    

    Is there any way of getting a debugger to start with the original exception's backtrace?

    Thanks a lot,
    Lukas

    1 Reply Last reply
    0

    1/1

    6 Nov 2015, 15:47

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved