!6306 Fix bug that required the user to click twice on "Next Node" in MindInsight Debugger UI

Merge pull request !6306 from HarshvardhanGupta/fix-next-node
This commit is contained in:
mindspore-ci-bot 2020-09-16 14:53:36 +08:00 committed by Gitee
commit 02c2a61065
1 changed files with 2 additions and 3 deletions

View File

@ -268,9 +268,8 @@ void Debugger::PostExecuteNode() {
if (!hits.empty()) {
SendWatchpointsAndSuspend(hits);
}
}
// if kernel is not watchpoint and is next_to or continue_to node, suspend.
if (run_level_ == "node" && (node_name_ == "" || node_name_ == cur_name_)) {
} else if (run_level_ == "node" && (node_name_ == "" || node_name_ == cur_name_)) {
// if kernel is not watchpoint and is next_to or continue_to node, suspend
CommandLoop();
}
return;