HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall_forms/buyercall/node_modules/node-sass/src/libsass/docs/trace.md
## This is proposed interface in https://github.com/sass/libsass/pull/1288

Additional debugging macros with low overhead are available, `TRACE()` and `TRACEINST()`.

Both macros simulate a string stream, so they can be used like this:

    TRACE() << "Reached.";

produces:

    [LibSass] parse_value parser.cpp:1384 Reached.

`TRACE()`
   logs function name, source filename, source file name to the standard error and the attached
   stream to the standard error.

`TRACEINST(obj)`
   logs object instance address, function name, source filename, source file name to the standard error and the attached stream to the standard error, for example:

    TRACEINST(this) << "String_Constant created " << this;

produces:

    [LibSass] 0x8031ba980:String_Constant ./ast.hpp:1371 String_Constant created (0,"auto")

The macros generate output only of `LibSass_TRACE` is set in the environment.