diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 0f6b513a08c05dba05d8cd7e177a09d3f0cf2a76..55cf1193387664617c5651172c369b0de2423051 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1211,7 +1211,7 @@ void DebuggerPluginPrivate::maybeEnrichParameters(DebuggerStartParameters *sp)
         sp->debugSourceLocation.append(base + "qt5base/src/gui");
         sp->debugSourceLocation.append(base + "qt5base/src/network");
         sp->debugSourceLocation.append(base + "qt5base/src/v8");
-        sp->debugSourceLocation.append(base + "qtdeclarative/src/declarative/qml");
+        sp->debugSourceLocation.append(base + "qt5declarative/src/declarative/qml");
     }
 }
 
diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index b89577121cceccd8e792f0c60b802ad68bf13e2f..0c1273687b1afe9f6d4a3c3df68698c8aac199dd 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -3681,6 +3681,7 @@ namespace valgrind {
     void testValgrind()
     {
         testLeak();
+        throw 42;
     }
 
 } // namespace valgrind
@@ -3726,6 +3727,7 @@ int main(int argc, char *argv[])
 {
     // For a very quick check, step into this one.
     sanity::testSanity();
+    valgrind::testValgrind();
 
     // Check for normal dumpers.
     basic::testBasic();
@@ -3790,8 +3792,6 @@ int main(int argc, char *argv[])
     qvariant::testQVariant();
     qvector::testQVector();
 
-    valgrind::testValgrind();
-
     // Third party data types.
     boost::testBoost();
     eigen::testEigen();