aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/qml
Commit message (Collapse)AuthorAgeFilesLines
* Debugger: Make some virtual methods privateJarek Kobus2025-11-181-1/+0
| | | | | | | | Limit the giant public interface of the base class. Remove some redundant overloads. Change-Id: Ifc6ff8f4270fe280a2cee12af8ec915600c41e20 Reviewed-by: hjk <hjk@qt.io>
* Use QStringList instead of QList<QString>Alessandro Portale2025-10-021-1/+1
| | | | | Change-Id: I56fabbfe32ab579ef5e9f7c8cc5fde220b99769a Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Debugger: Centralize the Qml FileInProjectFinderhjk2025-04-301-14/+1
| | | | | | | | Instead of populating it for each lookup, i.e. each stack frame on each step, do it just once when the QmlEngine starts. Change-Id: Idf2fdc61ff562a63d5abd9c5ea097a4eb7414d4a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QtSupport: Add another hack to back-map paths of .qml fileshjk2025-04-291-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Paths of .qml files go through several location before ending up in the binary (source directory, build directory, entries in .qrc files). The qml debug server side does not do any back-mapping to source directory files when reporting e.g. stack frames or breakpoint locations, so this a FileInProjectFinder is supposed to do the work, some deterministic, some by guessing. The most deterministic way is to read .qrc fils, but in modern Qt 6.x(?) CMake projects, .qrc files containing .qml file are typically on-the-fly and are not part of the project's sources anymore. On top of this, the heuristic to search for the files in the project directory which would normally help as fallback fails for in-source builds due to some unfortunate naming of build artifacts (for a fie called "testprojects/untitled/Main.qml" in the source, a file "testproject/untitled/untitled/Main.qml" build artifact will be generated /and/ found by the back-mapping heuristics using "prefixToIgnore" in FileInProjectFinder::checkProjectDirectory. To work around further, we add the relevant generated .qrc files manually in that case. Change-Id: Idcab1a3a5a86bd055a8b98e7fec13eb59d403b1e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Merge remote-tracking branch 'origin/16.0'Eike Ziller2025-03-271-0/+11
|\ | | | | | | Change-Id: Ibac8bd0e35b19207f8aa4697aa5d9d797b15a7ee
| * Debugger: Fix changing breakpoint enabled stateChristian Stenger2025-03-241-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | ...for qml debugging. Handle the response explicitly because otherwise we end up with once modified break points which wrongly keep displaying the original state and therefore even refuse to trigger the change back until the debugging session ends. Fixes: QTCREATORBUG-17294 Task-number: QTCREATORBUG-19382 Change-Id: Idba9f2add915c965398bde1f0a46826e55067f08 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Merge remote-tracking branch 'origin/16.0'Eike Ziller2025-03-191-0/+1
|\| | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: I3621af6bd63bb326555faa5a7778f58ccb271065
| * Debugger: Fix marking values as changedChristian Stenger2025-03-131-0/+1
| | | | | | | | | | | | | | | | | | | | Correctly update the cache before handling new information to be able to display different colors for values to mark them as unchanged or changed. Fixes: QTCREATORBUG-29344 Change-Id: I1af9da4947d544248e5217f4e53f6f4f1c598bda Reviewed-by: hjk <hjk@qt.io>
* | Android: Remove the usage of QmlOutputParserJarek Kobus2025-03-052-2/+0
| | | | | | | | | | | | | | | | | | | | Since we were not connected to its signals, the result of the parsing was ignored. Remove unneeded includes of qmloutputparser.h. Change-Id: I52cdf32de58e20a9e25f5e217af84db3ec440d4b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Drop a few unneeded #includeshjk2025-03-042-3/+0
| | | | | | | | | | Change-Id: Ifb4cddb9da4eeebdbce809e2565f91e5e2d34f10 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Debugger: Improve const correctnessOrkun Tokdemir2025-02-051-4/+4
|/ | | | | Change-Id: Ibfbc37691aed900b3762a90ba69cc6a2fd85b0d2 Reviewed-by: hjk <hjk@qt.io>
* Debugger: Transform a few fields of DebuggerRunParametersJarek Kobus2025-01-131-2/+2
| | | | | | | | Transform projectSourceDirectory and projectSourceFiles. Task-number: QTCREATORBUG-29168 Change-Id: I3e5f28f22df5b84f82f10e4daff10df2a62016f1 Reviewed-by: hjk <hjk@qt.io>
* Debugger: Replace some uses of FilePath::toUrlishString()hjk2025-01-131-1/+1
| | | | | Change-Id: Iec777effda0b19b840b783606a01c804d42306a2 Reviewed-by: David Schulz <david.schulz@qt.io>
* Debugger: Transform DebuggerRunParameters::sysRootJarek Kobus2025-01-101-1/+1
| | | | | | Task-number: QTCREATORBUG-29168 Change-Id: Ib4421ecb0a8ca26473960858f9ca257107d694a4 Reviewed-by: hjk <hjk@qt.io>
* Debugger: Transform DebuggerRunParameters::additionalSearchDirectoriesJarek Kobus2025-01-101-1/+1
| | | | | | Task-number: QTCREATORBUG-29168 Change-Id: I55dbf5ea72109f3fe0150ac19733e41d2450440c Reviewed-by: hjk <hjk@qt.io>
* Debugger: Transform DebuggerRunParameters::qmlServerJarek Kobus2025-01-101-7/+5
| | | | | | Task-number: QTCREATORBUG-29168 Change-Id: I950e8ede308af097d6a4f52691aec218384f451a Reviewed-by: hjk <hjk@qt.io>
* Utils: Rename FilePath::toString() into toUrlishString()hjk2025-01-101-7/+7
| | | | | | | | | | | | | | | | toString() is almost always the wrong conversion, but unfortunately too easy to find and often even working at least for local setup. This here raises the bar as the non-availability of the "obvious" toString() hopefully helps people to think about the semantics of the needed conversion and choose the right toXXX() function. The chosen new name is intentional ugly to reduce the likelihood that this (still almost always wrong) function is used out of convenience. Change-Id: I57f1618dd95ef2629d7d978688d130275e096c0f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Debugger: Transform DebuggerRunParameters::inferiorJarek Kobus2025-01-101-3/+3
| | | | | | Task-number: QTCREATORBUG-29168 Change-Id: I0f55da1d576d104e1b2d235ce7d14d487fb71ac8 Reviewed-by: hjk <hjk@qt.io>
* Debugger: Transform DebuggerRunParameters::startModeJarek Kobus2025-01-101-1/+1
| | | | | | | | | | | | | | | | | | The focus is on DebuggerRunParameters and DebuggerRunTool API change. The rest is an adaptation. The pattern would be: 1. Move a setter from DebuggerRunTool into DebuggerRunParameters. 2. Provide a corresponding getter. 3. Prefix a field with "m_". 4. Move the field into private section. Transform only one field in this patch to avoid giant change. Most probably one patch for one transformation could be optimal. Task-number: QTCREATORBUG-29168 Change-Id: Idc46fc78a16889f4de09c8718d1bc9ad28ad3df1 Reviewed-by: hjk <hjk@qt.io>
* Plugins A-L: Make static QRegularExpression instances static constAlessandro Portale2024-11-201-1/+1
| | | | | Change-Id: I6de1ddd036b654472b0a8cc020dc1dbf1bc1d270 Reviewed-by: hjk <hjk@qt.io>
* Debugger: Preliminary work on debugging QML-with-Terminalhjk2024-09-251-1/+1
| | | | | | | | | | | | The terminal needs information from the portsgatherer in the context of QML debugging, but has no start dependency on it (yet). This starts isolation terminal stuff for easier re-ordering later. No change in functionality intended. Change-Id: If75a4db6d277ae52a18851ea834d78057584248c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Replace QVector with QListhjk2024-07-311-1/+1
| | | | | | | The QContainer Naming War is over. QList won. Change-Id: I8193b1b51619502533b74d6e965ec9b664f8dbce Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Fix more metatype related deprecation warningshjk2024-06-111-1/+1
| | | | | | Change-Id: If206b70d263bcdb6d617827fb9cb8fe3214564a1 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* Fix QMetaType::type() related deprecation warningshjk2024-05-232-10/+10
| | | | | | | Not in sdktool, which still builds with Qt 5.15 Change-Id: I6e6f4331127b821e471e2840e7959cd65e6419e9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-03-141-7/+14
|\ | | | | | | | | | | | | | | | | Conflicts: src/plugins/cmakeprojectmanager/cmaketool.cpp src/plugins/python/pythonutils.cpp src/plugins/qtsupport/baseqtversion.cpp Change-Id: Ia3e35c763ff9475d17ad922718b54152209893b8
| * Debugger: Avoid a soft assert on QmlEngine shutdownhjk2024-03-121-7/+14
| | | | | | | | | | Change-Id: Id26b41e878ed2b8b20099b62ed1c122966165665 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Utils: Fix build with MSVC with C++20Eike Ziller2024-02-281-1/+1
|/ | | | | | | | | | | | | | | | | Rename process.h back to qtcprocess.h MSVC's "threads" standard header includes <process.h>, and that ends up including our process.h from Utils. There already was a hacky workaround in place for a similar issue with MINGW, but that doesn't work with MSVC because that doesn't have Simply use a name that doesn't conflict. Change-Id: I1159cd2096b4f2dbc4a1728d0131dd6edd30ebd3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Debugger: Fix Attach to QML Porthjk2024-02-191-2/+3
| | | | | | | | | This does not yet fix the reported problem but at least attaches and gives a working QML inspector in a QML-only debugging session. Task-number: QTCREATORBUG-30263 Change-Id: Ieac517c2b7c5dde24792f3bbcffe0058073ddbd1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix Qml debugger rampdown when not fully startedhjk2024-02-132-14/+2
| | | | | | Fixes: QTCREATORBUG-30355 Change-Id: I3e7c1ef56db1fe48f5b571d21f89d20b7936cfb7 Reviewed-by: David Schulz <david.schulz@qt.io>
* QmlInspectorAgent: Avoid using keys()Jarek Kobus2024-01-111-1/+1
| | | | | | | | Call contains() directly on the container. Change-Id: I89c7714b98d86d9c0bb6811e013138d1e51ddc9f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Qml Debugger: Don't complain about connectionMarcus Tillmanns2023-12-051-0/+5
| | | | | | | | | | | | When the debugger is quit, connectionStartupFailed will trigger and show a useless message box about not being able to connect. This can also trigger a crash in WatchHandler::cleanup if the user quits Creator while a debugging session is still running. (as seen on macOS). Change-Id: I19461d5cdd449e58e530b09b772431b3cf18c52f Reviewed-by: hjk <hjk@qt.io>
* Debugger: add python debugger setting in run configurationDavid Schulz2023-12-041-4/+4
| | | | | | Change-Id: Ifa5d72566007e0bb006523433dcef97689677fbf Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Qml Debugger: Do not focus the current frame when adding a watchOlivier De Cannière2023-11-091-6/+10
| | | | | | | | | | | | | | | | The other debuggers do not cause the view to jump to the current frame when adding a watch. Make the Qml debugger also not do this. This is done in a slightly hacky way by preventing the gotoLocation of the next handleFrame call to be executed. Ideally, the logic to retrieve the value of locals should be separated from the logic to jump to a specific frame. Right now the jump is implicit when updating the locals. Fixes: QTCREATORBUG-29329 Change-Id: I4b8f5c99ae41c92c3394f86da481303d4765f897 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Debugger: Adapt to latest settings access stylehjk2023-07-142-15/+13
| | | | | Change-Id: I14f737612b4fe6a37e650190b587ef0b04e559ea Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Reduce usage of app_version headerEike Ziller2023-06-261-4/+3
| | | | | | | | | | | | Most information is available via Q(Core|Gui)Application. Add an AppInfo structure for the things that are not. This avoids that the information ends up duplicated and hardcoded in the plugins, which is not needed or desired. Change-Id: I4d565e75c42a7b8facafa90c27096ea49359215d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Debugger: Handle some Qt deprecation warningshjk2023-06-121-4/+4
| | | | | Change-Id: I93c9f91642bc5f5bd43ebb80cb489782978db327 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Debugger: Use Utils::Text::Position instead of int line numberhjk2023-06-071-7/+7
| | | | | | | The column is currently unused. Change-Id: Iabc57c8d21e807187783071efe9a82e9c1877181 Reviewed-by: hjk <hjk@qt.io>
* Debugger: Replace some uses of deprecated QVariant::typehjk2023-06-072-4/+4
| | | | | Change-Id: I2225668b51d82e017cda305737f8c93fdaf97bd7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Rename qtcprocess.{cpp,h} -> process.{cpp,h}Jarek Kobus2023-05-041-1/+1
| | | | | | | | Follows QtcProcess -> Process rename. Change-Id: I97235a9a40cb7fd52944515b7ab878d96528f919 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Utils: Rename QtcProcess -> ProcessJarek Kobus2023-05-041-5/+5
| | | | | | | | Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Debugger: Use more FilePath in source file handlinghjk2023-03-155-16/+18
| | | | | | | | | | Needed for the double-remote case. With this we have proper breakpoint markers in the text editor for a remotely running gdb on a remotely loaded project. Change-Id: If80e4a4108a4a0bcdd7612a59e2bd695213f5ea5 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Debugger: Use more FilePaths in module handling interfacehjk2023-03-142-4/+4
| | | | | | Change-Id: Ie058b928900015d0f71776151547bf7ba32a62bf Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Debugger: add <load more> functionality to array dumperDavid Schulz2023-02-271-2/+1
| | | | | Change-Id: Ib44748fa3218788ca20a99b0a0f4cd85716dde06 Reviewed-by: hjk <hjk@qt.io>
* Translations: Fix stray QApplication::translate() callsAlessandro Portale2023-02-081-2/+2
| | | | | | | | | For references to the module-own context, use Tr::tr(). For references to other modules, use the right context name (with "::" prefix). Change-Id: I6dce8f1ceccb23c44d93f1826402cd3be8e98e5a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Rename QtcProcess::readAllStandard* to readAllRawStandard*hjk2023-01-101-2/+2
| | | | | | | | | | | | ... and re-use the old QtcProcess::readAllStandard* names for a QString-returning 'decoded' version. For now, only use that in 'full Utf8' cases, to stay bug-compatible, the plan is, however, to employ the QTextCodecs we have already in the channel buffers. That will be one-by-one, though. Change-Id: Id209e0671920d4ea4197918e872f441254112d52 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-069-9/+9
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/9.0'Eike Ziller2022-11-211-5/+7
|\ | | | | | | Change-Id: Idd9c2b1bf787040b7b415b7cda29035227ca1011
| * Debugger: Fix interrupting QmlChristian Stenger2022-11-181-5/+7
| | | | | | | | | | | | Fixes: QTCREATORBUG-28469 Change-Id: I421dd18e0aedbe6628d4817fddf271c1a2bfbeb0 Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/9.0'Tim Jenssen2022-10-251-3/+3
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp src/plugins/qmldesigner/components/stateseditornew/propertychangesmodel.cpp src/plugins/qmldesigner/components/stateseditornew/propertymodel.cpp src/plugins/qmldesigner/qmldesignerprojectmanager.cpp src/plugins/qmldesigner/qmldesignerprojectmanager.h Change-Id: Ib029a830ee99190bc4ea2ad75d9300bfa86b42d9
| * QmlEngine: Fix typo (hander -> handler)Jarek Kobus2022-10-201-3/+3
| | | | | | | | | | | | | | Amends 126030d079b7309a9487cd4138e40da49e617341 Change-Id: I3cec0e2984af311070ebb258b454d4e3fcec626f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>