diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-08-08 14:53:10 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2011-08-08 16:31:44 +0200 |
commit | c42e96618454a7315680a96718bf8d20a7f67e68 (patch) | |
tree | 9f0c53481903c356005945debb3c4a0177197bf5 /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | e0ba50066d79a3d5dfeb829cb7e0dbc78baaeff0 (diff) | |
download | qt-creator-c42e96618454a7315680a96718bf8d20a7f67e68.tar.gz |
JSDebugger: Only hit breakpoints in user code
Check that the topmost stack entry is a user defined ScriptFunction.
This avoids hitting the anonymous functions used for bindings, e.g.
onClicked: Qt.quit()
leads to script code
(function onClicked() { Qt.quit(); })
which will be hit twice for the debugger: Once for the function call
itself, then for the execution of Qt.quit().
Change-Id: I4cb374782c93a26d97d4a717ce67d1fb2f6df438
Task-number: QTCREATORBUG-5090
Reviewed-on: http://codereview.qt.nokia.com/2746
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
0 files changed, 0 insertions, 0 deletions