Print call trace to stderr.

This commit is contained in:
losfair 2019-04-28 12:51:51 +08:00
parent 6beb76c3ae
commit cf83a9785f

View File

@ -16,7 +16,7 @@ impl FunctionMiddleware for CallTrace {
match op {
Event::Internal(InternalEvent::FunctionBegin(id)) => {
sink.push(Event::Internal(InternalEvent::Breakpoint(Box::new(move |_| {
println!("func ({})", id);
eprintln!("func ({})", id);
}))))
}
_ => {}