Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. debugging
    Log in to post

    • UNSOLVED Debugging, step over / step out, intended behaviour
      Tools • qtcreator debug debugging qtcreator debug qtcreator 8.0.2 • • MHuysmans  

      2
      0
      Votes
      2
      Posts
      68
      Views

      @MHuysmans I think it is intended behaviour. But whatever it should have nothing to do with Qt Creator. That is only a front-end to whatever debugger you use. Which you don't say. So go test this behaviour in the debugger, e.g. gdb with step and next commands.
    • UNSOLVED How to show variables in full binary form during debugging in Qt Creator
      General and Desktop • debugging binary format feature-request • • Ronhald  

      10
      0
      Votes
      10
      Posts
      227
      Views

      @Ronhald OK, I've been digging around in this. Unfortunately, the debug helpers seem to focused on providing a more human-friendly depiction of complex structures. For basic integers the displayed data is actually formatted by Qt Creator's C++ code using QString::number(). This suppresses leading zeros. It may be possible to customise the Qt Creator source to take into consideration the sizeof(IntType) to generate a string of appropriate length.
    • UNSOLVED Unable to debug device
      Mobile and Embedded • android debug debugging armv7 • • bludger  

      1
      0
      Votes
      1
      Posts
      144
      Views

      No one has replied

    • SOLVED Handling Database on Multiple Thread
      General and Desktop • c++ qthread debugging multithread sql database • • mvsri  

      13
      0
      Votes
      13
      Posts
      589
      Views

      to continue the point @Christian-Ehrlicher mentioned above, blocking serial tasks usually exist on server daemon applications, but not on anything with user interaction or a GUI.
    • UNSOLVED Properly using debugger commands in Creator
      Tools • creator debugging gdb • • WilliamKappler  

      1
      0
      Votes
      1
      Posts
      125
      Views

      No one has replied

    • SOLVED CANBus Payload Extraction
      Mobile and Embedded • debugging canbus • • williamsk  

      8
      0
      Votes
      8
      Posts
      685
      Views

      @williamsk Ah, cool. So as your problem is solved, please mark this topic as SOLVED too (button Topic Tools). Thanks and regards
    • UNSOLVED Create sequence diagram from debugger
      General and Desktop • debugging sequence uml call stack • • Gustaf D  

      5
      0
      Votes
      5
      Posts
      434
      Views

      @Gustaf-D As far as I know there's no such thing for Qt Creator, but if your app can run on Windows you can use Visual Studio to attach a debugger and use the Diagnostic Tools. They have function call graphs, CPU and memory profiling, hot path discovery and much much more. You can start/stop data collection on breakpoints like you asked.
    • UNSOLVED How can I step into Qt's source code when debugging under Mac OS with Qt-creator
      General and Desktop • qt 5.7 debugging mac os 10.14.6 • • shashikumar  

      4
      0
      Votes
      4
      Posts
      259
      Views

      Hm, it should work then, no idea.
    • Deleaker: a plugin for Qt Creator to find leaks (memory, GDI, handles etc.)
      Showcase • windows qt creator plugin debugging memory leak • • Artem.Razin  

      4
      7
      Votes
      4
      Posts
      1444
      Views

      @fcarney I can't beleive I missed your question. Comparing with Heob, Deleaker provides more features like taking snapshot at any moment, and comparing them later. Besides heap allocations, Deleaker also tracks COM/ActiveX/GDI/USER32 leaks etc.
    • UNSOLVED How to debug / backtrace the call stack?
      General and Desktop • debug embedded linux debugging segfault backtrace • • abhisit  

      10
      0
      Votes
      10
      Posts
      5072
      Views

      @jsulm Yep, absolutely, there is much to read/fiddle with, and may not be portable. May or may not work for OP's particular case. Anyway, whether this or your core dump suggestion (OP should look up how his target Linux OS handles core dumps allowed or not), he has a few approaches to consider now....
    • UNSOLVED no more debugging in qtcreator
      Tools • qtcreator debugging • • skylendar  

      5
      0
      Votes
      5
      Posts
      1744
      Views

      @skylendar you shortened the log, so I can't see the GDB version. Please check these. Also, GDB must be python enabled, and last the python dumper script must be loaded. Have you checked the directories? Regards
    • UNSOLVED QDialog blankly freezes unless I set a breakpoint in the code, break and continue.
      General and Desktop • qdialog debugging freeze breakpoint blank • • enjoysmath  

      2
      0
      Votes
      2
      Posts
      448
      Views

      Hi, Why are you mixing both like that ?
    • UNSOLVED Problem with qtcreator debugger. Cannot see info about 'this' pointer in own code.
      General and Desktop • debugging qtcreator 4.6.2 this not accessible • • F.Haferkorn  

      10
      0
      Votes
      10
      Posts
      1003
      Views

      Thanks @koahnig and @aha_1980. I will setup a smaller Project an then do the recommended steps. Regards...
    • SOLVED How to debug "Exception Triggered: The inferior stopped because it triggered an exception"?
      General and Desktop • qt 5.5 debugging msvc2017 exception • • elsa  

      4
      0
      Votes
      4
      Posts
      2545
      Views

      @jsulm there was in fact a problem with window3d() that MinGW didnt complain about! Thanks! @JonB no I had commented out only up to the second screenshot, so that's why this was the problem. And about the second issue, to be honest I adapted the constructor from an older version of the application and it also had &argc. At one point I also noticed it and now I tried out both and both work.
    • UNSOLVED Qt Creator doesn't set breakpoints properly with GDB
      Tools • c++ debug bug debugging gdb • • Andrew Smith  

      3
      0
      Votes
      3
      Posts
      984
      Views

      By build a debug version do you mean adding -DDEBUG -g to CFLAGS in my makefile? Hooray! Adding the -DDEBUG -g flags to my makefile fixed it! Thank you @aha_1980! I googled for this but nothing really came up, thanks!
    • SOLVED Debugging has failed
      General and Desktop • debugging debug error debugger engine debug window • • OlegK  

      5
      0
      Votes
      5
      Posts
      1974
      Views

      how about changing to MinGW 64 ?
    • UNSOLVED Debugging stl objects with QtCreator 4.4.1
      Tools • debugging qtcreator 4.4.1 • • nyakacs  

      9
      0
      Votes
      9
      Posts
      2797
      Views

      Thanks for this Adam. It seems that disabling Load .gdbinit does the trick. Do you know why this is a problem?
    • UNSOLVED Windows 7 64-bit configuration to run and debug within Qt 5.5.1
      General and Desktop • debugging compiler 64bit cdb debug error • • configurationinquiry4  

      5
      0
      Votes
      5
      Posts
      2499
      Views

      What does you code do ?
    • UNSOLVED "this" disappears from "locals and expressions" if clicked on during debugging in Qt Creator 4 (Win10 MSVC2015 x64 CDB. Bare C++. No Qt classes used)
      Tools • debugging msvc2015 cdb locals qtcreator 4 • • Asyx  

      1
      0
      Votes
      1
      Posts
      569
      Views

      No one has replied

    • UNSOLVED Getting a backtrace out of an event handler
      General and Desktop • debugging debugger exception • • tinloaf  

      1
      0
      Votes
      1
      Posts
      638
      Views

      No one has replied

    • SOLVED error: cannot find -lGL
      General and Desktop • debugging ubuntu 14.04 libraries qt5.5.1 error 1 • • fady_lahiru  

      3
      0
      Votes
      3
      Posts
      1190
      Views

      @SGaist thank you so much.I solved problem by changing setup file
    • Qt creator suddenly stopped to show debug info
      General and Desktop • debugging cdb • • ankit thakar  

      3
      0
      Votes
      3
      Posts
      980
      Views

      yes it does
    • [Qt Creator 3.5] Debugging impossible after "Signal Received" error message
      Tools • cmake debugging qt creator 3.5 • • maarten  

      1
      1
      Votes
      1
      Posts
      1067
      Views

      No one has replied

    • Regression: Updated to Qt 5.5.1 and QtCreator 3.5.1 today, breakpoints no longer work
      General and Desktop • qtcreator osx debugging mac os x breakpoint • • philipp  

      1
      0
      Votes
      1
      Posts
      899
      Views

      No one has replied

    • [Solved] VisualStudio 2013 with Qt5.5 addin debugging woes
      General and Desktop • debugging visual studio 2 qt addin • • panch  

      5
      0
      Votes
      5
      Posts
      1282
      Views

      Ahh ok. Thanks alot. That clears it up for me!
    • Debugging executable in remote embedded linux device
      Mobile and Embedded • linux debug embedded debugging • • koliva  

      2
      0
      Votes
      2
      Posts
      1001
      Views

      Hi, Do you have gdbserver installed on your device ?
    • QML Javascript debugger crashes
      QML and Qt Quick • javascript crash debugging • • rtam  

      1
      0
      Votes
      1
      Posts
      1146
      Views

      No one has replied

    • [DirectX] Window doesn't update unless i move it
      Game Development • update debugging directx • • Kieran  

      3
      0
      Votes
      3
      Posts
      1687
      Views

      @Chris-Kawa Hi thanks for your reply. For some reason, though, it has started working again. All i changed was I added QWidget::resizeEvent(pEvent); to the GameView class and it started working. However, here is where it gets weird. when i remove that line it still works, so effectively i have changed nothing and it started working
    • Debugging nested lists
      General and Desktop • debugging gdb qt creator 3.4 • • Alex Court  

      1
      0
      Votes
      1
      Posts
      743
      Views

      No one has replied

    • How can I debug my QML program that hangs?
      General and Desktop • qml debugging hang • • eLim  

      2
      0
      Votes
      2
      Posts
      901
      Views

      I have the same problem, did you find any solution for this ?
    • SIGSEGV - segmentation fault
      Tools • serial port debugging serialport sigsegv segmentation fa unexpectedly fi exe crashed the inferior st • • FabioSO  

      6
      0
      Votes
      6
      Posts
      1963
      Views

      You're welcome ! Since you have it working now, please update the thread title prepending [solved] so other forums users may know a solution has been found :)
    • Stepping into QUdpSocket WriteDatagram with Qt Creator
      Tools • qtcreator debugging qudpsocket • • kzawada  

      1
      0
      Votes
      1
      Posts
      542
      Views

      No one has replied

    • How do I configure the Xcode debugger to show Qt objects in a more useful way?
      Tools • debugging xcode • • Ghopper21  

      1
      0
      Votes
      1
      Posts
      896
      Views

      No one has replied

    • How to automatically add breakpoints to all methods in a cpp file or whole project?
      General and Desktop • qtcreator qt creator desktop debug debugging documentation gdb break point • • Tusharh  

      2
      0
      Votes
      2
      Posts
      1128
      Views

      @Tusharh Hi and welcome to devnet A featrure as you request may be latest with larger projects too much for the debugger to handle. The closest to get such a behaviour is to use F11 and Shift+F11. F11 will enter every possible method and Shift+F11 will help you to run the remainder of the method. IMO sufficient enough to get a really detailed anaylsis of source code.
    • Debugging external application & showing C++ code, not assembly
      Tools • qt creator debug debugging gdb gcc gdbengine • • Geremia  

      2
      0
      Votes
      2
      Posts
      2816
      Views

      It was because I was in instruction-wise operation mode. Unchecking Debug → Operate By Instruction solved my problem.
    • Breakpoints within the framework code
      General and Desktop • qt creator debugging vs2013 break point • • OldDeath  

      6
      0
      Votes
      6
      Posts
      2288
      Views

      To add to my fellow and maybe a silly question but since you build Qt yourself did you do a debug_and_release build ?
    • Setting up lldb debugger in qt 5-4 on macos-x darwin-kernel-version-14-3-0
      Installation and Deployment • mac qt 5.4.1 debugging libraries • • shailesh83  

      3
      0
      Votes
      3
      Posts
      1933
      Views

      Thanks for replying to my Questions. Sorry for replying so late. Also regarding my question of using lldb as debugger it is not hitting the break point which i had set in QtCreator project. Now i tried installing gdb debugger it works,But for Non-Qt Project it fails to load the debugging symbols. But using LLDB debugger issue is still persists. Second Question of resolving the issue of Library not loaded by executable. I tried using : otool -L ABC.exe and it showed me the dependent .dylib and there path where missing But i tried changing it via install_name_tool -change <old> <new> <exe> But i got same error.Then i set the DYLD_LIBRARY_PATH inside my Qt Project under Project > Run>Run Environment > I hardcoded the path for Debug external Libraries.But how it work for Release external Library. I need to again amend that for Release Build ? I am currently using Xcode 6.3.
    • What is equals of Visual Studio .Net [DebuggerStepThrough] in QT?
      General and Desktop • debug debugging compiler • • qasem  

      2
      0
      Votes
      2
      Posts
      1595
      Views

      Hi, welcome to devnet. Qt (not QT which is Apple QuickTime) is just a library. It has nothing to do with debugging. C++ language doesn't have such annotations so features like this depend on the compiler and debugger you use. The supported toolchains on windows include MCVC+CDB and MinGW+gdb. I'm not sure about the second combo, but AFAIK there is no (official at least) way to do that with MSVC and CDB. There is an undocumented .natstepfilter file that you can edit to mark some functions to be stepped over, but I personally never managed to make it work and I'm not sure if they apply to the CDB outside VS either. Anyway a few words about it here. Would love to hear from you if you get it to work.
    • Debug the Framework with QtCreator
      General and Desktop • qtcreator qt 5.4.1 debugging • • OldDeath  

      1
      0
      Votes
      1
      Posts
      625
      Views

      No one has replied