File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -231,10 +231,13 @@ macro_rules! eprintln {
231
231
/// to give up ownership, you can instead borrow with `dbg!(&expr)`
232
232
/// for some expression `expr`.
233
233
///
234
+ /// The `dbg!` macro works exactly the same in release builds. This is useful when debugging issues
235
+ /// that only occur in release builds or when debugging in release mode is significantly faster.
236
+ ///
234
237
/// Note that the macro is intended as a debugging tool and therefore you
235
238
/// should avoid having uses of it in version control for longer periods.
236
239
/// Use cases involving debug output that should be added to version control
237
- /// may be better served by macros such as `debug!` from the `log` crate.
240
+ /// are better served by macros such as [ `debug!`][debug-log] from the [ `log`][log] crate.
238
241
///
239
242
/// # Stability
240
243
///
@@ -306,6 +309,8 @@ macro_rules! eprintln {
306
309
/// ```
307
310
///
308
311
/// [stderr]: https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)
312
+ /// [debug-log]: https://docs.rs/log/*/log/macro.debug.html
313
+ /// [log]: https://docs.rs/log/
309
314
#[ macro_export]
310
315
#[ stable( feature = "dbg_macro" , since = "1.32.0" ) ]
311
316
macro_rules! dbg {
You can’t perform that action at this time.
0 commit comments