diff options
| author | Eike Ziller <[email protected]> | 2022-08-24 14:55:12 +0200 |
|---|---|---|
| committer | Eike Ziller <[email protected]> | 2022-08-31 06:25:01 +0000 |
| commit | d5bacfc087daed9d869999986ee5bb6502ff63a7 (patch) | |
| tree | 263b24e5c0c9bb574bf5465741c7df12461bf482 /src/plugins/debugger/breakpoint.cpp | |
| parent | a29ee883aef1d0b48996195c77bae26a5584c109 (diff) | |
Debugger: Use qtcEnvironmentVariable* instead of qEnvironmentVariable*
And instead of qgetenv.
Takes Qt Creator's setting at "Environment > System > Environment" into
account, which makes it easier on some platforms to set them (e.g.
macOS), can be configured differently in different settings paths, and
potentially can be changed at runtime (depending on usage).
Change-Id: I3ea7623fb528e13a202afa2f89b00e5ee83962d8
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/debugger/breakpoint.cpp')
| -rw-r--r-- | src/plugins/debugger/breakpoint.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/breakpoint.cpp b/src/plugins/debugger/breakpoint.cpp index 730f15b7172..94406bdb8fd 100644 --- a/src/plugins/debugger/breakpoint.cpp +++ b/src/plugins/debugger/breakpoint.cpp @@ -7,6 +7,7 @@ #include <projectexplorer/abi.h> +#include <utils/environment.h> #include <utils/fileutils.h> #include <utils/qtcassert.h> #include <utils/stringutils.h> @@ -130,7 +131,7 @@ bool BreakpointParameters::isQmlFileAndLineBreakpoint() const if (type != BreakpointByFileAndLine) return false; - QString qmlExtensionString = QString::fromLocal8Bit(qgetenv("QTC_QMLDEBUGGER_FILEEXTENSIONS")); + QString qmlExtensionString = Utils::qtcEnvironmentVariable("QTC_QMLDEBUGGER_FILEEXTENSIONS"); if (qmlExtensionString.isEmpty()) qmlExtensionString = ".qml;.js;.mjs"; |
