| |
| |
| <!-- |
| Documentation generated by Skydoc |
| --> |
| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <meta name="viewport" content="width=device-width initial-scale=1" /> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| |
| <title>debug Rules</title> |
| |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700" type="text/css"> |
| <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
| <link rel="stylesheet" href="https://code.getmdl.io/1.1.1/material.green-light_blue.min.css"> |
| <script defer src="https://code.getmdl.io/1.1.1/material.min.js"></script> |
| <link rel="stylesheet" href="./main.css"> |
| </head> |
| <body> |
| <div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer |
| mdl-layout--fixed-header"> |
| <header class="mdl-layout__header"> |
| <div class="mdl-layout__header-row"> |
| <span class="mdl-layout-title">debug Rules</span> |
| </div> |
| </header> |
| <div class="mdl-layout__drawer"> |
| <span class="mdl-layout-title">Bazel</span> |
| <nav class="drawer-nav"> |
| <ul class="drawer-nav"> |
| |
| <li><a href="./index.html">Overview</a></li> |
| <li> |
| <a href="./debug.html">debug Rules</a> |
| <ul> |
| </ul> |
| </li> |
| <li> |
| <a href="./subpar.html">Build self-contained python executables.</a> |
| <ul> |
| <li> |
| <a href="./subpar.html#parfile"> |
| parfile |
| </a> |
| </li> |
| <li> |
| <a href="./subpar.html#parfile_test"> |
| parfile_test |
| </a> |
| </li> |
| </ul> |
| </li> |
| |
| </ul> |
| </nav> |
| </div> |
| |
| <main class="mdl-layout__content"> |
| <div class="page-content"> |
| <h1>debug Rules</h1> |
| |
| <nav class="toc"> |
| <h2>Macros</h2> |
| <ul> |
| <li><a href="#dump">dump</a></li> |
| </ul> |
| </nav> |
| <hr> |
| |
| <h2 id="dump">dump</h2> |
| |
| <pre>dump(<a href="#dump.obj">obj</a>, <a href="#dump.obj_name">obj_name</a>)</pre> |
| |
| <p>Debugging method that recursively prints object fields to stderr</p> |
| <p>Example Usage:</p> |
| <pre><code>load("debug", "dump") |
| ... |
| dump(ctx, "ctx") |
| </code></pre> |
| <p>Example Output:</p> |
| <pre><code>WARNING: /code/rrrrr/subpar/debug.bzl:11:5: |
| ctx[ctx]: |
| action[string]: <getattr(action) failed> |
| attr[struct]: |
| _action_listener[list]: [] |
| _compiler[RuleConfiguredTarget]: |
| data_runfiles[runfiles]: |
| </code></pre> |
| |
| |
| <h3 id="dump_args">Attributes</h3> |
| |
| <table class="params-table"> |
| <colgroup> |
| <col class="col-param" /> |
| <col class="col-description" /> |
| </colgroup> |
| <tbody> |
| <tr id="dump.obj"> |
| <td><code>obj</code></td> |
| <td> |
| <p><code>Unknown; Required</code></p> |
| <p>Object to dump</p> |
| </td> |
| </tr> |
| <tr id="dump.obj_name"> |
| <td><code>obj_name</code></td> |
| <td> |
| <p><code>Unknown; Required</code></p> |
| <p>Name to print for that object</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| |
| |
| </div> |
| |
| <footer class="mdl-mini-footer"> |
| <div class="mdl-mini-footer__left-section"> |
| <div class="mdl-logo">Bazel</div> |
| <ul class="mdl-mini-footer__link-list"> |
| <li><a href="https://bazel.build">Home</a></li> |
| <li><a href="https://github.com/bazelbuild">GitHub</a></li> |
| </ul> |
| </div> |
| </footer> |
| </main> |
| </div> |
| </body> |
| </html> |