Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Double Debugging



  • Problem: Two program versions give different results, but they must give same one.
    Solution: Run two debigings, set corresponding breakpoints, and manually look for difference in corresponding varyables.
    Shortcoming of this solution:
    Loss of time at every breakpoint if all interesting varyable are equal.
    Solution of this problem: double debuging whith automatic corresponding varyables comparing.
    Algorythm of double debuging:
    Go to next breakpoint, if other version didnt come yet, wait. If next breakpoints dont correspond or one pair of corresponding varyables are not equal, signal about error, else go to next breakpoint.
    0_1526928882686_double_debuggind.svg.png

    [EDIT: Image link removed --JKSH]


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    While your suggestion looks interesting. What does it have to do with Qt ?



  • I think, developers of qtcreator can add tool for double debugging to the IDE.


  • Lifetime Qt Champion

    Ok, then you're on the wrong place for such a discussion. This is a user forum.

    You should rather file a feature request on the bug report system or maybe start the discussion on the Qt Creator mailing list.


Log in to reply