{"repo":"renatoGarcia/icecream-cpp","free":true,"listed":false,"github":"https://github.com/renatoGarcia/icecream-cpp","clone":"git clone https://github.com/renatoGarcia/icecream-cpp.git","description":"🍦 Never use cout/printf to debug again","language":"C++","stars":749,"topics":["cpp","debug","debugging-tool","print","debugging","cpp11","cpp14","cpp17","single-header-lib","header-only"],"license":null,"category":"dev-tools","readme_excerpt":"Icecream-cpp [![CI.badge]][CI.link] [![LICENSE.badge]][LICENSE.link] Icecream-cpp is a little (single header) library to help with print debugging in C++11 and later. Try it at Compiler Explorer! Tracking execution flow: can be coded instead: and will print something like: ic combat.cpp:12 in \"void roll attack(int)\" ic combat.cpp:14 in \"void roll attack(int)\" Inspecting variables: can be simplified to: and will print: ic a: 7, b: 2, sum(a, b): 9 Formatting output. Instead of: just write: and get: ic answer: 0x2a, num: 0xa Slicing ranges like in Python: will print: ic v: [1:-2]- ['β', 'γ', 'δ'] Debugging range pipelines. Insert IC V() to inspect data flowing through STL ranges or Range-v3 pipelines: When iterating on rv , we will see: ic range view 63:16[0]: [1] ic range view 63:16[1]: [2, 3] ic range view 63:16[2]: [4, 5] This library was inspired by the original Python IceCream library. Contents Rationale Install Quick Start Basic Usage Direct printing Range views pipeline Return value and Icecream apply macro Output formatting Configuration Printing Strategies Third-party Libraries Compatibility Reference C strings Character Encoding Macro disabling Pitfalls Rationale Icecream-cpp is a throwaway library. It is designed for use during development and debugging, not for shipping with the released product. It complements debuggers rather than replacing them, sometimes print debugging is simply faster or more practical. Because of this, Icecream-cpp is one of the few libraries ","default_branch":null,"files":null,"tree":[],"storefront":"/r/renatoGarcia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/renatoGarcia/icecream-cpp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}