Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Scott Petrovic
Krita
Commits
93b6c70e
Commit
93b6c70e
authored
Jan 15, 2021
by
Halla Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add convenience method to print a backtrace
parent
e354c9d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
libs/global/kis_debug.cpp
libs/global/kis_debug.cpp
+8
-0
libs/global/kis_debug.h
libs/global/kis_debug.h
+2
-0
No files found.
libs/global/kis_debug.cpp
View file @
93b6c70e
...
...
@@ -100,3 +100,11 @@ QString __methodName(const char *_prettyFunction)
return
QString
(
std
::
string
(
prettyFunction
.
substr
(
begin
,
end
)
+
"()"
).
c_str
());
}
void
printBacktrace
()
{
QString
bt
=
kisBacktrace
();
Q_FOREACH
(
const
QString
&
line
,
bt
.
split
(
'\n'
))
{
qDebug
()
<<
line
;
}
}
libs/global/kis_debug.h
View file @
93b6c70e
...
...
@@ -141,6 +141,8 @@ extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41017();
*/
KRITAGLOBAL_EXPORT
QString
kisBacktrace
();
KRITAGLOBAL_EXPORT
void
printBacktrace
();
/**
* Please pretty print my variable
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment