Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
4b8c4add
Commit
4b8c4add
authored
Mar 24, 2010
by
Marco Bubke
Committed by
Kai Koehne
Mar 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add environment variable to set assert in exception
parent
6fc26463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/plugins/qmldesigner/qmldesignerplugin.cpp
src/plugins/qmldesigner/qmldesignerplugin.cpp
+10
-1
No files found.
src/plugins/qmldesigner/qmldesignerplugin.cpp
View file @
4b8c4add
...
...
@@ -65,12 +65,19 @@
#include <QtCore/QCoreApplication>
#include <QtCore/qplugin.h>
#include <QtCore/QDebug>
#include <QtCore/QProcessEnvironment>
namespace
QmlDesigner
{
namespace
Internal
{
BauhausPlugin
*
BauhausPlugin
::
m_pluginInstance
=
0
;
bool
shouldAssertInException
()
{
QProcessEnvironment
processEnvironment
=
QProcessEnvironment
::
systemEnvironment
();
return
!
processEnvironment
.
value
(
"QMLDESIGNER_ASSERT_ON_EXCEPTION"
).
isEmpty
();
}
BauhausPlugin
::
BauhausPlugin
()
:
m_designerCore
(
0
),
m_designMode
(
0
),
...
...
@@ -92,7 +99,9 @@ BauhausPlugin::BauhausPlugin() :
// 2. in gdb: "catch throw" or "catch throw Exception"
// 3. set a breakpoint on __raise_exception()
// And with gdb, you can even do this from your ~/.gdbinit file.
Exception
::
setShouldAssert
(
false
);
// DnD is not working with gdb so this is still needed to get a good stacktrace
Exception
::
setShouldAssert
(
shouldAssertInException
());
}
BauhausPlugin
::~
BauhausPlugin
()
...
...
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