Sha256: 4c7b2a3f2272206dd1753a25a60eb77dc18ac666a613e4cf75d7253852a1d3df

Contents?: true

Size: 892 Bytes

Versions: 64

Compression:

Stored size: 892 Bytes

Contents

## 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.

Version data entries

64 entries across 62 versions & 17 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@rails/webpacker/node_modules/node-sass/src/libsass/docs/trace.md
optimacms-0.1.61 spec/dummy/node_modules/node-sass/src/libsass/docs/trace.md
disco_app-0.18.0 test/dummy/node_modules/node-sass/src/libsass/docs/trace.md
disco_app-0.18.2 test/dummy/node_modules/node-sass/src/libsass/docs/trace.md
tang-0.2.1 spec/tang_app/node_modules/node-sass/src/libsass/docs/trace.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/node-sass/src/libsass/docs/trace.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/node-sass/src/libsass/docs/trace.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/node-sass/src/libsass/docs/trace.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/node-sass/src/libsass/docs/trace.md
tang-0.2.0 spec/tang_app/node_modules/node-sass/src/libsass/docs/trace.md
tang-0.1.0 spec/tang_app/node_modules/node-sass/src/libsass/docs/trace.md
tang-0.0.9 spec/tang_app/node_modules/node-sass/src/libsass/docs/trace.md
enju_library-0.3.8 spec/dummy/node_modules/node-sass/src/libsass/docs/trace.md
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sassc-2.0.0/ext/libsass/docs/trace.md
ilog-0.4.1 node_modules/node-sass/src/libsass/docs/trace.md
ilog-0.4.0 node_modules/node-sass/src/libsass/docs/trace.md
ilog-0.3.3 node_modules/node-sass/src/libsass/docs/trace.md
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/trace.md
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/trace.md
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/trace.md