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. Create sequence diagram from debugger

Create sequence diagram from debugger

Scheduled Pinned Locked Moved Unsolved General and Desktop
debuggingumlsequencecall stack
5 Posts 4 Posters 1.1k 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.
  • G Offline
    G Offline
    Gustaf D
    wrote on last edited by
    #1

    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.

    JonBJ 1 Reply Last reply
    0
    • G Gustaf D

      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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @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
      0
      • JonBJ JonB

        @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 Offline
        G Offline
        Gustaf D
        wrote on last edited by
        #3

        @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
        0
        • A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by
          #4

          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
          0
          • Chris KawaC Online
            Chris KawaC Online
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

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

            • Login

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