Qt Forum

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

    Qt Creator debugger question

    Tools
    1
    1
    985
    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.
    • P
      pperisin last edited by

      Hi,

      I am using generic project. I have executable, and I want QtCreator to attach to it and debug it.

      However, executable is started from a script - this script starts executable and does all the necessary preparations for executable to function correctly. After that, script is executing a test on the executable, and during that test I would liek to make Qt Creator stop executable at a breakpoint. This means that file that is being started (script) is different from file that is about to be debugged (executable).

      Is it possible to automatically do this with QtCreator - I have not figured out if file I run (script) and executable can be different.

      I was able to do this manually - so I start script from command line, then wait untill executable process starts, then attach.
      However, this way I'm not able to set up a break point at the entry of a main, because it takes some time for me to go through all entries after script starts executable.

      Is it poossible to set up debugger in QtCreator to start script, "wait" untill script starts the executable, attach, and wait until it hits first breakpoint.

      Regards,
      Petar

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