diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-08-04 12:41:26 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-08-04 12:41:26 (GMT) |
commit | 008cca1a15ac9178c57de77d2f6699d9de3088cb (patch) | |
tree | af912c58cc32e7b832f2eb40fa86588c11ffa526 /src/uscxml/debug/Debugger.cpp | |
parent | 045bde78c0587316e0373c7698413412d0f315f9 (diff) | |
download | uscxml-008cca1a15ac9178c57de77d2f6699d9de3088cb.zip uscxml-008cca1a15ac9178c57de77d2f6699d9de3088cb.tar.gz uscxml-008cca1a15ac9178c57de77d2f6699d9de3088cb.tar.bz2 |
Debugger bugfixes and improvements
Diffstat (limited to 'src/uscxml/debug/Debugger.cpp')
-rw-r--r-- | src/uscxml/debug/Debugger.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/uscxml/debug/Debugger.cpp b/src/uscxml/debug/Debugger.cpp index cd7f0fe..fa173f0 100644 --- a/src/uscxml/debug/Debugger.cpp +++ b/src/uscxml/debug/Debugger.cpp @@ -145,7 +145,7 @@ void Debugger::handleExecutable(const std::string& sessionId, std::shared_ptr<DebugSession> session = getSession(sessionId); if (!session) return; - if (!session->_isRunning) + if (!session->_isRunning && !session->_isAttached) return; std::list<Breakpoint> breakpoints; @@ -165,7 +165,7 @@ void Debugger::handleEvent(const std::string& sessionId, const Event& event, Bre std::shared_ptr<DebugSession> session = getSession(sessionId); if (!session) return; - if (!session->_isRunning) + if (!session->_isRunning && !session->_isAttached) return; std::list<Breakpoint> breakpoints; @@ -184,7 +184,7 @@ void Debugger::handleStable(const std::string& sessionId, Breakpoint::When when) std::shared_ptr<DebugSession> session = getSession(sessionId); if (!session) return; - if (!session->_isRunning) + if (!session->_isRunning && !session->_isAttached) return; std::list<Breakpoint> breakpoints; @@ -201,7 +201,7 @@ void Debugger::handleMicrostep(const std::string& sessionId, Breakpoint::When wh std::shared_ptr<DebugSession> session = getSession(sessionId); if (!session) return; - if (!session->_isRunning) + if (!session->_isRunning && !session->_isAttached) return; std::list<Breakpoint> breakpoints; @@ -218,7 +218,7 @@ void Debugger::handleTransition(const std::string& sessionId, const XERCESC_NS:: std::shared_ptr<DebugSession> session = getSession(sessionId); if (!session) return; - if (!session->_isRunning) + if (!session->_isRunning && !session->_isAttached) return; Breakpoint breakpointTemplate; @@ -231,7 +231,7 @@ void Debugger::handleState(const std::string& sessionId, const XERCESC_NS::DOMEl std::shared_ptr<DebugSession> session = getSession(sessionId); if (!session) return; - if (!session->_isRunning) + if (!session->_isRunning && !session->_isAttached) return; Breakpoint breakpointTemplate; @@ -246,7 +246,7 @@ void Debugger::handleInvoke(const std::string& sessionId, const XERCESC_NS::DOME std::shared_ptr<DebugSession> session = getSession(sessionId); if (!session) return; - if (!session->_isRunning) + if (!session->_isRunning && !session->_isAttached) return; Breakpoint breakpointTemplate; |