Navigation

    Qt Forum

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

    • [SOLVED] Breakpoints are not getting hit, not working in Qt creator.
      General and Desktop • qtcreator debug break point • • Tusharh  

      5
      0
      Votes
      5
      Posts
      8758
      Views

      If you have code that benefits significantly from compiler optimizations, you might want to try to compile in 'release with debug info' instead: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo As @darkp03 mentioned, make sure you are pressing QtCreator's 'debug button' (or shortcut key F5) and not the 'run' button.
    • 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.
    • Breakpoints within the framework code
      General and Desktop • qt creator debugging vs2013 break point • • OldDeath  

      6
      0
      Votes
      6
      Posts
      2287
      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 ?
    • [SOLVED] QString.Contains Code works only with break point, does not work if no break point
      General and Desktop • qserialport qstring terminal break point contains • • Sen Li  

      2
      0
      Votes
      2
      Posts
      1344
      Views

      I added a delay function before reading the serial port, console->SenDelay(70); QByteArray data = serial->readAll(); now everything is working.