Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-4106

QML Breakpoint is not hit first time if added after app is started

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • Qt Creator 2.2.0
    • Quick / QML Support
    • Mac OS X 10.5.8, Qt 4.7.2

    Description

      1) start samegame in debug mode
      2) now that samegame is running in QML Observer, add breakpoint to samegame.js:27 (in startGame(){} )
      3) press "Start game" button
      4) Breakpoint is not hit!
      5) Press "start game button again
      6) Now breakpoint is hit correctly

      Prior to pressing "Start game" button for the first time, the debugger log was:

      sStarting debugger 'QmlEngine' for ABI 'unknown-unknown-unknown-unknown-unknown'...
      dStart parameters: 'QML Viewer' mode: 1
      dABI: unknown-unknown-unknown-unknown-unknown
      dExecutable: /Applications/Qt Creator.app/Contents/qtc-qmlobserver/92501879/QMLObserver.app/Contents/MacOS/QMLObserver -qmljsdebugger=port:3768 -I /Developer/Applications/Qt/imports /Users/berlin/dev/qt/qt/demos/declarative/samegame/samegame.qml
      dDirectory: /Users/berlin/dev/qt/qt/demos/declarative/samegame
      dQML server: 127.0.0.1:3768
      d
      dDebugger settings: 
      dUseAlternatingRowColours: false  (default: false)
      dUseMessageBoxForSignals: true  (default: true)
      dAutoQuit: false  (default: false)
      dLogTimeStamps: false  (default: false)
      dVerboseLog: false  (default: false)
      dCloseBuffersOnExit: false  (default: false)
      dSwitchModeOnExit: false  (default: false)
      dUseDebuggingHelper: true  (default: true)
      dUseCustomDebuggingHelperLocation: false  (default: false)
      dCustomDebuggingHelperLocation:   (default: )
      dUseCodeModel: true  (default: true)
      dShowThreadNames: false  (default: false)
      dUseToolTips: false  (default: false)
      dUseToolTipsInLocalsView: false  (default: false)
      dUseToolTipsInBreakpointsView: false  (default: false)
      dUseAddressInBreakpointsView: false  (default: false)
      dUseAddressInStackView: false  (default: false)
      dLoadGdbInit: true  (default: true)
      dScriptFile:   (default: )
      dWatchdogTimeout: 20  (default: 20)
      dTargetAsync: false  (default: false)
      dMaximalStackDepth: 20  (default: 20)
      dShowStandardNamespace: true  (default: true)
      dShowQtNamespace: true  (default: true)
      dSortStructMembers: true  (default: true)
      dAutoDerefPointers: true  (default: true)
      dListSourceFiles: false  (default: false)
      dSkipKnownFrames: false  (default: false)
      dEnableReverseDebugging: false  (default: false)
      dAllPluginBreakpoints: true  (default: true)
      dSelectedPluginBreakpoints: false  (default: false)
      dAdjustBreakpointLocations: true  (default: true)
      dNoPluginBreakpoints: false  (default: false)
      dSelectedPluginBreakpointsPattern: .*  (default: .*)
      dBreakOnThrow: false  (default: false)
      dBreakOnCatch: false  (default: false)
      dState changed from DebuggerNotReady(0) to EngineSetupRequested(1).
      dQUEUE: SETUP ENGINE
      dCALL: SETUP ENGINE
      dNOTE: ENGINE SETUP OK
      dState changed from EngineSetupRequested(1) to EngineSetupOk(3).
      dQUEUE: SETUP INFERIOR
      dState changed from EngineSetupOk(3) to InferiorSetupRequested(4).
      dQUEUE: SETUP INFERIOR
      dCALL: SETUP INFERIOR
      dNOTE: INFERIOR SETUP OK
      dState changed from InferiorSetupRequested(4) to InferiorSetupOk(6).
      dState changed from InferiorSetupOk(6) to EngineRunRequested(7).
      dQUEUE: RUN ENGINE
      dCALL: RUN ENGINE
       Starting /Applications/Qt Creator.app/Contents/qtc-qmlobserver/92501879/QMLObserver.app/Contents/MacOS/QMLObserver -qmljsdebugger=port:3768 -I /Developer/Applications/Qt/imports /Users/berlin/dev/qt/qt/demos/declarative/samegame/samegame.qml
       Qml debugging is enabled. Only use this in a safe environment!
       
       QDeclarativeDebugServer: Waiting for connection on port 3768...
       
      sQmlJSDebugger: Connect to debug server 127.0.0.1:3768
      sQmlJSDebugger: resolving host...
      sQmlJSDebugger: connecting to debug server...
      sQmlJSDebugger: connected.
      s
      dJSDebugger sending BREAKPOINTS []
      sQML Debugger connected.
      dNOTE: ENGINE RUN AND INFERIOR RUN OK
      dState changed from EngineRunRequested(7) to InferiorRunOk(11).
      sQmlJSDebugger: Connected to debug service 'QDeclarativeObserverMode'.
      dQDeclarativeObserverMode  sending SetDesignMode false
      dQDeclarativeDebug  sending LIST_ENGINES
      sQmlJSDebugger: Connected to debug service 'JSDebugger'.
       QDeclarativeDebugServer: Connection established
       
      dQDeclarativeObserverMode  receiving SetDesignMode false
      dQDeclarativeObserverMode  receiving ContextPathUpdated 
      dQDeclarativeObserverMode  receiving ContextPathUpdated Rectangle
      dQDeclarativeDebug  receiving LIST_ENGINES_R
      dQDeclarativeDebug  sending LIST_OBJECTS 0
      dQDeclarativeDebug  receiving LIST_OBJECTS_R
      dQDeclarativeDebug  sending FETCH_OBJECT screen
      dQDeclarativeDebug  receiving FETCH_OBJECT_R screen
      dQDeclarativeObserverMode  sending ObjectIdList 34 %2 [list of debug / object ids]
      dQDeclarativeObserverMode  sending SetCurrentObjects 1 [list of ids]
      dATTEMPT SYNC
      dJSDebugger sending BREAKPOINTS [('' 'file:///Users/berlin/dev/qt/qt/demos/declarative/samegame/SamegameCore/samegame.js' 27)]
      dATTEMPT SYNC
      dJSDebugger sending BREAKPOINTS [('' 'file:///Users/berlin/dev/qt/qt/demos/declarative/samegame/SamegameCore/samegame.js' 27)]
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            holmsted Lasse Holmstedt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes