Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

Rust debugging example

use log::debug;

let pos = Position { x: 3.5, y: -1.5 };

debug!("New position: x: {}, y: {}", pos.x, pos.y);
debug!(target: "location", "New position: x: {}, y: {}", pos.x, pos.y);
Source by www.rookout.com #
 
PREVIOUS NEXT
Tagged: #Rust #debugging
ADD COMMENT
Topic
Name
8+1 =