When we hit an exception, pass the line number of the top-of-stack

* This allows us to update the current line highlight before stopping.
This commit is contained in:
baldurk
2017-08-03 16:22:40 +01:00
parent 87ef595cce
commit ee67b85b58
5 changed files with 36 additions and 19 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ int main(int argc, char *argv[])
py.ctx().setGlobal("pyrenderdoc", (ICaptureContext *)&ctx);
QObject::connect(&py.ctx(), &PythonContext::exception,
[](const QString &type, const QString &value, QList<QString> frames) {
[](const QString &type, const QString &value, int, QList<QString> frames) {
QString exString;