1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2023-2024, Offchain Labs, Inc.
// For licensing, see https://github.com/OffchainLabs/stylus-sdk-rs/blob/main/licenses/COPYRIGHT.md
//! Debug-only items for printing to the console.
//!
//! ```no_run
//! use stylus_sdk::{alloy_primitives::address, console};
//! extern crate alloc;
//!
//! let arbinaut = address!("361594F5429D23ECE0A88E4fBE529E1c49D524d8");
//! console!("Gm {}", arbinaut); // prints nothing in production
//! ```
/// Prints a UTF-8 encoded string to the console. Only available in debug mode.
/// Prints to the console when executing in a debug environment. Otherwise does nothing.
/// Prints to the console when executing in a debug environment. Otherwise does nothing.