the.bay.news

Why doesn't the debugger stop on loop `break`?

The Rust Programming Language Forum
Why doesn't the debugger stop on loop `break`?
I am debugging some Rust code, and inside an if condition, there was only a single line: break, which exits the loop. I couldn't confirm whether the condition was true because the debugger didn't step onto the break line. if e.kind() == std::io::ErrorKind::UnexpectedEof { println!("error = {:?}", e); println!("kind = {:?}", e.kind()); break; } I had to add some println! statements to confirm that the condition was actually true. Why does the debugger behave like this?

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.