Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved Create sequence diagram from debugger

    General and Desktop
    debugging uml sequence call stack
    4
    5
    451
    Loading More Posts
    • 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.
    • G
      Gustaf D last edited by

      During investigation of an interesting piece of code I would like to set a breakpoint just before and after that code. Then when the first breakpoint is triggered i would like to start recording the call stack until the second breakpoint is reached. This recorded callstack could then be used to generate call sequence diagrams.

      Do you know if there is such a plugin to qtcreator? I think it would be very useful.

      JonB 1 Reply Last reply Reply Quote 0
      • JonB
        JonB @Gustaf D last edited by

        @Gustaf-D
        I doubt there is any such thing, but if there were it would be in the capabilities of the debugger you use (you don't say), not Qt Creator itself.

        G 1 Reply Last reply Reply Quote 0
        • G
          Gustaf D @JonB last edited by

          @JonB no i have trouble finding such a tool. But i am not the first one to think about it i see in the searches. Strange as it would be very useful investigating biff platforms.

          Yes it should probably be supported in the debugger, so all transitions would be saved. To later be visualized in some nice tool.

          There seem to be something in sparks.
          https://sparxsystems.com/enterprise_architect_user_guide/14.0/visual_execution_analysis/create_sequence_diagram_of_cal.html

          It also seems prototyped in eclipse for Java.

          https://www.google.com/amp/s/www.researchgate.net/figure/J-IVE-prototype-showing-object-and-sequence-diagrams-call-stack-source-code-and-query_fig2_221107985/amp

          1 Reply Last reply Reply Quote 0
          • A
            AnneRanch last edited by

            This is an excellent idea / subject to ponder on.
            The original JIVE presentation is dated 2007!
            There MAY be others, similar tools since then...

            I sure could use such tool tracking development of my current and only Qt project - bluetooth application.
            I picked Qt for GUI and did not realize it is event driven (IDE) and it definitely applies well when "external" timing is involved.

            I also have another bluetooth application - under construction - that one uses Eclipse. I may take a peek if JIVE was / is really available for Eclipse. ( Not that I need to start mixing QtCreator and Eclipse .)

            1 Reply Last reply Reply Quote 0
            • Chris Kawa
              Chris Kawa Moderators last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post