diff --git a/mindspore/ccsrc/debug/debugger/debugger.cc b/mindspore/ccsrc/debug/debugger/debugger.cc index 2b29fd3395..41ec37cb61 100644 --- a/mindspore/ccsrc/debug/debugger/debugger.cc +++ b/mindspore/ccsrc/debug/debugger/debugger.cc @@ -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;