Skip to main content

trace

Function trace 

Source
pub fn trace<T: ToUcstrLossy + Sized>(message: T)
Expand description

Sends a message to the debugger output.

Delivery is not guaranteed; the message may not be presented.

§Panics

Panics if no CurrentContext exists. The call must occur within an active native function call from the Flash runtime main thread.

§Examples

use fre_rs::prelude::*;
fn func <'a> (_: &mut CurrentContext<'a>, args: &[Object<'a>]) {
    trace("Hello, Flash runtime!");
    trace(args);
    trace(args[0]);
}