ruby-breakpoint 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest +38 -35
 - data/NEWS +14 -0
 - data/README +4 -4
 - data/TODO +4 -0
 - data/bin/breakpoint_client +1 -212
 - data/doc/classes/Binding.html +237 -220
 - data/doc/classes/Breakpoint.html +552 -539
 - data/doc/classes/Breakpoint/CommandBundle.html +206 -206
 - data/doc/classes/Breakpoint/CommandBundle/Client.html +232 -200
 - data/doc/classes/Breakpoint/FailedAssertError.html +117 -117
 - data/doc/classes/Handlers.html +230 -0
 - data/doc/created.rid +1 -1
 - data/doc/files/COPYING.html +162 -162
 - data/doc/files/NEWS.html +168 -134
 - data/doc/files/README.html +154 -153
 - data/doc/files/TODO.html +166 -161
 - data/doc/files/lib/binding_of_caller_rb.html +100 -100
 - data/doc/files/lib/breakpoint_client_rb.html +131 -0
 - data/doc/files/lib/breakpoint_rb.html +201 -201
 - data/doc/fr_class_index.html +31 -30
 - data/doc/fr_file_index.html +32 -31
 - data/doc/fr_method_index.html +41 -37
 - data/doc/index.html +23 -23
 - data/doc/rdoc-style.css +207 -207
 - data/lib/binding_of_caller.rb +16 -2
 - data/lib/breakpoint.rb +34 -7
 - data/lib/breakpoint_client.rb +214 -0
 - metadata +63 -57
 
| 
         @@ -1,118 +1,118 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            <?xml version="1.0" encoding="iso-8859-1"?>
         
     | 
| 
       2 
     | 
    
         
            -
            <!DOCTYPE html 
         
     | 
| 
       3 
     | 
    
         
            -
                 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         
     | 
| 
       4 
     | 
    
         
            -
                 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
         
     | 
| 
       7 
     | 
    
         
            -
            <head>
         
     | 
| 
       8 
     | 
    
         
            -
              <title>Class: Breakpoint::FailedAssertError</title>
         
     | 
| 
       9 
     | 
    
         
            -
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
         
     | 
| 
       10 
     | 
    
         
            -
              <meta http-equiv="Content-Script-Type" content="text/javascript" />
         
     | 
| 
       11 
     | 
    
         
            -
              <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
         
     | 
| 
       12 
     | 
    
         
            -
              <script type="text/javascript">
         
     | 
| 
       13 
     | 
    
         
            -
              // <![CDATA[
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
              function popupCode( url ) {
         
     | 
| 
       16 
     | 
    
         
            -
                window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
         
     | 
| 
       17 
     | 
    
         
            -
              }
         
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
              function toggleCode( id ) {
         
     | 
| 
       20 
     | 
    
         
            -
                if ( document.getElementById )
         
     | 
| 
       21 
     | 
    
         
            -
                  elem = document.getElementById( id );
         
     | 
| 
       22 
     | 
    
         
            -
                else if ( document.all )
         
     | 
| 
       23 
     | 
    
         
            -
                  elem = eval( "document.all." + id );
         
     | 
| 
       24 
     | 
    
         
            -
                else
         
     | 
| 
       25 
     | 
    
         
            -
                  return false;
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
                elemStyle = elem.style;
         
     | 
| 
       28 
     | 
    
         
            -
                
         
     | 
| 
       29 
     | 
    
         
            -
                if ( elemStyle.display != "block" ) {
         
     | 
| 
       30 
     | 
    
         
            -
                  elemStyle.display = "block"
         
     | 
| 
       31 
     | 
    
         
            -
                } else {
         
     | 
| 
       32 
     | 
    
         
            -
                  elemStyle.display = "none"
         
     | 
| 
       33 
     | 
    
         
            -
                }
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
                return true;
         
     | 
| 
       36 
     | 
    
         
            -
              }
         
     | 
| 
       37 
     | 
    
         
            -
              
         
     | 
| 
       38 
     | 
    
         
            -
              // Make codeblocks hidden by default
         
     | 
| 
       39 
     | 
    
         
            -
              document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
         
     | 
| 
       40 
     | 
    
         
            -
              
         
     | 
| 
       41 
     | 
    
         
            -
              // ]]>
         
     | 
| 
       42 
     | 
    
         
            -
              </script>
         
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
            </head>
         
     | 
| 
       45 
     | 
    
         
            -
            <body>
         
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
                <div id="classHeader">
         
     | 
| 
       50 
     | 
    
         
            -
                    <table class="header-table">
         
     | 
| 
       51 
     | 
    
         
            -
                    <tr class="top-aligned-row">
         
     | 
| 
       52 
     | 
    
         
            -
                      <td><strong>Class</strong></td>
         
     | 
| 
       53 
     | 
    
         
            -
                      <td class="class-name-in-header">Breakpoint::FailedAssertError</td>
         
     | 
| 
       54 
     | 
    
         
            -
                    </tr>
         
     | 
| 
       55 
     | 
    
         
            -
                    <tr class="top-aligned-row">
         
     | 
| 
       56 
     | 
    
         
            -
                        <td><strong>In:</strong></td>
         
     | 
| 
       57 
     | 
    
         
            -
                        <td>
         
     | 
| 
       58 
     | 
    
         
            -
                            <a href="../../files/lib/breakpoint_rb.html">
         
     | 
| 
       59 
     | 
    
         
            -
                            lib/breakpoint.rb
         
     | 
| 
       60 
     | 
    
         
            -
                            </a>
         
     | 
| 
       61 
     | 
    
         
            -
                    <br />
         
     | 
| 
       62 
     | 
    
         
            -
                        </td>
         
     | 
| 
       63 
     | 
    
         
            -
                    </tr>
         
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
                    <tr class="top-aligned-row">
         
     | 
| 
       66 
     | 
    
         
            -
                        <td><strong>Parent:</strong></td>
         
     | 
| 
       67 
     | 
    
         
            -
                        <td>
         
     | 
| 
       68 
     | 
    
         
            -
                            RuntimeError
         
     | 
| 
       69 
     | 
    
         
            -
                        </td>
         
     | 
| 
       70 
     | 
    
         
            -
                    </tr>
         
     | 
| 
       71 
     | 
    
         
            -
                    </table>
         
     | 
| 
       72 
     | 
    
         
            -
                </div>
         
     | 
| 
       73 
     | 
    
         
            -
              <!-- banner header -->
         
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
              <div id="bodyContent">
         
     | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
       79 
     | 
    
         
            -
              <div id="contextContent">
         
     | 
| 
       80 
     | 
    
         
            -
             
     | 
| 
       81 
     | 
    
         
            -
                <div id="description">
         
     | 
| 
       82 
     | 
    
         
            -
                  <p>
         
     | 
| 
       83 
     | 
    
         
            -
            These exceptions will be raised on failed asserts if
         
     | 
| 
       84 
     | 
    
         
            -
            Breakpoint.asserts_cause_exceptions is set to true.
         
     | 
| 
       85 
     | 
    
         
            -
            </p>
         
     | 
| 
       86 
     | 
    
         
            -
             
     | 
| 
       87 
     | 
    
         
            -
                </div>
         
     | 
| 
       88 
     | 
    
         
            -
             
     | 
| 
       89 
     | 
    
         
            -
             
     | 
| 
       90 
     | 
    
         
            -
               </div>
         
     | 
| 
       91 
     | 
    
         
            -
             
     | 
| 
       92 
     | 
    
         
            -
             
     | 
| 
       93 
     | 
    
         
            -
              </div>
         
     | 
| 
       94 
     | 
    
         
            -
             
     | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
       96 
     | 
    
         
            -
                <!-- if includes -->
         
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
     | 
    
         
            -
                <div id="section">
         
     | 
| 
       99 
     | 
    
         
            -
             
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
       101 
     | 
    
         
            -
             
     | 
| 
       102 
     | 
    
         
            -
             
     | 
| 
       103 
     | 
    
         
            -
             
     | 
| 
       104 
     | 
    
         
            -
                  
         
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
       106 
     | 
    
         
            -
             
     | 
| 
       107 
     | 
    
         
            -
                <!-- if method_list -->
         
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
             
     | 
| 
       110 
     | 
    
         
            -
              </div>
         
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
       113 
     | 
    
         
            -
            <div id="validator-badges">
         
     | 
| 
       114 
     | 
    
         
            -
              <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
         
     | 
| 
       115 
     | 
    
         
            -
            </div>
         
     | 
| 
       116 
     | 
    
         
            -
             
     | 
| 
       117 
     | 
    
         
            -
            </body>
         
     | 
| 
      
 1 
     | 
    
         
            +
            <?xml version="1.0" encoding="iso-8859-1"?>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <!DOCTYPE html 
         
     | 
| 
      
 3 
     | 
    
         
            +
                 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         
     | 
| 
      
 4 
     | 
    
         
            +
                 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
         
     | 
| 
      
 7 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 8 
     | 
    
         
            +
              <title>Class: Breakpoint::FailedAssertError</title>
         
     | 
| 
      
 9 
     | 
    
         
            +
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
         
     | 
| 
      
 10 
     | 
    
         
            +
              <meta http-equiv="Content-Script-Type" content="text/javascript" />
         
     | 
| 
      
 11 
     | 
    
         
            +
              <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
         
     | 
| 
      
 12 
     | 
    
         
            +
              <script type="text/javascript">
         
     | 
| 
      
 13 
     | 
    
         
            +
              // <![CDATA[
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
              function popupCode( url ) {
         
     | 
| 
      
 16 
     | 
    
         
            +
                window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
         
     | 
| 
      
 17 
     | 
    
         
            +
              }
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
              function toggleCode( id ) {
         
     | 
| 
      
 20 
     | 
    
         
            +
                if ( document.getElementById )
         
     | 
| 
      
 21 
     | 
    
         
            +
                  elem = document.getElementById( id );
         
     | 
| 
      
 22 
     | 
    
         
            +
                else if ( document.all )
         
     | 
| 
      
 23 
     | 
    
         
            +
                  elem = eval( "document.all." + id );
         
     | 
| 
      
 24 
     | 
    
         
            +
                else
         
     | 
| 
      
 25 
     | 
    
         
            +
                  return false;
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                elemStyle = elem.style;
         
     | 
| 
      
 28 
     | 
    
         
            +
                
         
     | 
| 
      
 29 
     | 
    
         
            +
                if ( elemStyle.display != "block" ) {
         
     | 
| 
      
 30 
     | 
    
         
            +
                  elemStyle.display = "block"
         
     | 
| 
      
 31 
     | 
    
         
            +
                } else {
         
     | 
| 
      
 32 
     | 
    
         
            +
                  elemStyle.display = "none"
         
     | 
| 
      
 33 
     | 
    
         
            +
                }
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                return true;
         
     | 
| 
      
 36 
     | 
    
         
            +
              }
         
     | 
| 
      
 37 
     | 
    
         
            +
              
         
     | 
| 
      
 38 
     | 
    
         
            +
              // Make codeblocks hidden by default
         
     | 
| 
      
 39 
     | 
    
         
            +
              document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
         
     | 
| 
      
 40 
     | 
    
         
            +
              
         
     | 
| 
      
 41 
     | 
    
         
            +
              // ]]>
         
     | 
| 
      
 42 
     | 
    
         
            +
              </script>
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 45 
     | 
    
         
            +
            <body>
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                <div id="classHeader">
         
     | 
| 
      
 50 
     | 
    
         
            +
                    <table class="header-table">
         
     | 
| 
      
 51 
     | 
    
         
            +
                    <tr class="top-aligned-row">
         
     | 
| 
      
 52 
     | 
    
         
            +
                      <td><strong>Class</strong></td>
         
     | 
| 
      
 53 
     | 
    
         
            +
                      <td class="class-name-in-header">Breakpoint::FailedAssertError</td>
         
     | 
| 
      
 54 
     | 
    
         
            +
                    </tr>
         
     | 
| 
      
 55 
     | 
    
         
            +
                    <tr class="top-aligned-row">
         
     | 
| 
      
 56 
     | 
    
         
            +
                        <td><strong>In:</strong></td>
         
     | 
| 
      
 57 
     | 
    
         
            +
                        <td>
         
     | 
| 
      
 58 
     | 
    
         
            +
                            <a href="../../files/lib/breakpoint_rb.html">
         
     | 
| 
      
 59 
     | 
    
         
            +
                            lib/breakpoint.rb
         
     | 
| 
      
 60 
     | 
    
         
            +
                            </a>
         
     | 
| 
      
 61 
     | 
    
         
            +
                    <br />
         
     | 
| 
      
 62 
     | 
    
         
            +
                        </td>
         
     | 
| 
      
 63 
     | 
    
         
            +
                    </tr>
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                    <tr class="top-aligned-row">
         
     | 
| 
      
 66 
     | 
    
         
            +
                        <td><strong>Parent:</strong></td>
         
     | 
| 
      
 67 
     | 
    
         
            +
                        <td>
         
     | 
| 
      
 68 
     | 
    
         
            +
                            RuntimeError
         
     | 
| 
      
 69 
     | 
    
         
            +
                        </td>
         
     | 
| 
      
 70 
     | 
    
         
            +
                    </tr>
         
     | 
| 
      
 71 
     | 
    
         
            +
                    </table>
         
     | 
| 
      
 72 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 73 
     | 
    
         
            +
              <!-- banner header -->
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
              <div id="bodyContent">
         
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
              <div id="contextContent">
         
     | 
| 
      
 80 
     | 
    
         
            +
             
     | 
| 
      
 81 
     | 
    
         
            +
                <div id="description">
         
     | 
| 
      
 82 
     | 
    
         
            +
                  <p>
         
     | 
| 
      
 83 
     | 
    
         
            +
            These exceptions will be raised on failed asserts if
         
     | 
| 
      
 84 
     | 
    
         
            +
            Breakpoint.asserts_cause_exceptions is set to true.
         
     | 
| 
      
 85 
     | 
    
         
            +
            </p>
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
      
 90 
     | 
    
         
            +
               </div>
         
     | 
| 
      
 91 
     | 
    
         
            +
             
     | 
| 
      
 92 
     | 
    
         
            +
             
     | 
| 
      
 93 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 94 
     | 
    
         
            +
             
     | 
| 
      
 95 
     | 
    
         
            +
             
     | 
| 
      
 96 
     | 
    
         
            +
                <!-- if includes -->
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                <div id="section">
         
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
             
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
                  
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
             
     | 
| 
      
 107 
     | 
    
         
            +
                <!-- if method_list -->
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
      
 110 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 111 
     | 
    
         
            +
             
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
            <div id="validator-badges">
         
     | 
| 
      
 114 
     | 
    
         
            +
              <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
         
     | 
| 
      
 115 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 116 
     | 
    
         
            +
             
     | 
| 
      
 117 
     | 
    
         
            +
            </body>
         
     | 
| 
       118 
118 
     | 
    
         
             
            </html>
         
     | 
| 
         @@ -0,0 +1,230 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <?xml version="1.0" encoding="iso-8859-1"?>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <!DOCTYPE html 
         
     | 
| 
      
 3 
     | 
    
         
            +
                 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         
     | 
| 
      
 4 
     | 
    
         
            +
                 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
         
     | 
| 
      
 7 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 8 
     | 
    
         
            +
              <title>Module: Handlers</title>
         
     | 
| 
      
 9 
     | 
    
         
            +
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
         
     | 
| 
      
 10 
     | 
    
         
            +
              <meta http-equiv="Content-Script-Type" content="text/javascript" />
         
     | 
| 
      
 11 
     | 
    
         
            +
              <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
         
     | 
| 
      
 12 
     | 
    
         
            +
              <script type="text/javascript">
         
     | 
| 
      
 13 
     | 
    
         
            +
              // <![CDATA[
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
              function popupCode( url ) {
         
     | 
| 
      
 16 
     | 
    
         
            +
                window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
         
     | 
| 
      
 17 
     | 
    
         
            +
              }
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
              function toggleCode( id ) {
         
     | 
| 
      
 20 
     | 
    
         
            +
                if ( document.getElementById )
         
     | 
| 
      
 21 
     | 
    
         
            +
                  elem = document.getElementById( id );
         
     | 
| 
      
 22 
     | 
    
         
            +
                else if ( document.all )
         
     | 
| 
      
 23 
     | 
    
         
            +
                  elem = eval( "document.all." + id );
         
     | 
| 
      
 24 
     | 
    
         
            +
                else
         
     | 
| 
      
 25 
     | 
    
         
            +
                  return false;
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                elemStyle = elem.style;
         
     | 
| 
      
 28 
     | 
    
         
            +
                
         
     | 
| 
      
 29 
     | 
    
         
            +
                if ( elemStyle.display != "block" ) {
         
     | 
| 
      
 30 
     | 
    
         
            +
                  elemStyle.display = "block"
         
     | 
| 
      
 31 
     | 
    
         
            +
                } else {
         
     | 
| 
      
 32 
     | 
    
         
            +
                  elemStyle.display = "none"
         
     | 
| 
      
 33 
     | 
    
         
            +
                }
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                return true;
         
     | 
| 
      
 36 
     | 
    
         
            +
              }
         
     | 
| 
      
 37 
     | 
    
         
            +
              
         
     | 
| 
      
 38 
     | 
    
         
            +
              // Make codeblocks hidden by default
         
     | 
| 
      
 39 
     | 
    
         
            +
              document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
         
     | 
| 
      
 40 
     | 
    
         
            +
              
         
     | 
| 
      
 41 
     | 
    
         
            +
              // ]]>
         
     | 
| 
      
 42 
     | 
    
         
            +
              </script>
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 45 
     | 
    
         
            +
            <body>
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                <div id="classHeader">
         
     | 
| 
      
 50 
     | 
    
         
            +
                    <table class="header-table">
         
     | 
| 
      
 51 
     | 
    
         
            +
                    <tr class="top-aligned-row">
         
     | 
| 
      
 52 
     | 
    
         
            +
                      <td><strong>Module</strong></td>
         
     | 
| 
      
 53 
     | 
    
         
            +
                      <td class="class-name-in-header">Handlers</td>
         
     | 
| 
      
 54 
     | 
    
         
            +
                    </tr>
         
     | 
| 
      
 55 
     | 
    
         
            +
                    <tr class="top-aligned-row">
         
     | 
| 
      
 56 
     | 
    
         
            +
                        <td><strong>In:</strong></td>
         
     | 
| 
      
 57 
     | 
    
         
            +
                        <td>
         
     | 
| 
      
 58 
     | 
    
         
            +
                            <a href="../files/lib/breakpoint_client_rb.html">
         
     | 
| 
      
 59 
     | 
    
         
            +
                            lib/breakpoint_client.rb
         
     | 
| 
      
 60 
     | 
    
         
            +
                            </a>
         
     | 
| 
      
 61 
     | 
    
         
            +
                    <br />
         
     | 
| 
      
 62 
     | 
    
         
            +
                        </td>
         
     | 
| 
      
 63 
     | 
    
         
            +
                    </tr>
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                    </table>
         
     | 
| 
      
 66 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 67 
     | 
    
         
            +
              <!-- banner header -->
         
     | 
| 
      
 68 
     | 
    
         
            +
             
     | 
| 
      
 69 
     | 
    
         
            +
              <div id="bodyContent">
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
      
 73 
     | 
    
         
            +
              <div id="contextContent">
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
             
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
               </div>
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
                <div id="method-list">
         
     | 
| 
      
 80 
     | 
    
         
            +
                  <h3 class="section-bar">Methods</h3>
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
                  <div class="name-list">
         
     | 
| 
      
 83 
     | 
    
         
            +
                  <a href="#M000004">breakpoint_handler</a>  
         
     | 
| 
      
 84 
     | 
    
         
            +
                  <a href="#M000006">collision_handler</a>  
         
     | 
| 
      
 85 
     | 
    
         
            +
                  <a href="#M000005">eval_handler</a>  
         
     | 
| 
      
 86 
     | 
    
         
            +
                  </div>
         
     | 
| 
      
 87 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
             
     | 
| 
      
 92 
     | 
    
         
            +
                <!-- if includes -->
         
     | 
| 
      
 93 
     | 
    
         
            +
             
     | 
| 
      
 94 
     | 
    
         
            +
                <div id="section">
         
     | 
| 
      
 95 
     | 
    
         
            +
             
     | 
| 
      
 96 
     | 
    
         
            +
             
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
      
 100 
     | 
    
         
            +
                  
         
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
             
     | 
| 
      
 103 
     | 
    
         
            +
                <!-- if method_list -->
         
     | 
| 
      
 104 
     | 
    
         
            +
                <div id="methods">
         
     | 
| 
      
 105 
     | 
    
         
            +
                  <h3 class="section-bar">Public Instance methods</h3>
         
     | 
| 
      
 106 
     | 
    
         
            +
             
     | 
| 
      
 107 
     | 
    
         
            +
                  <div id="method-M000004" class="method-detail">
         
     | 
| 
      
 108 
     | 
    
         
            +
                    <a name="M000004"></a>
         
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
      
 110 
     | 
    
         
            +
                    <div class="method-heading">
         
     | 
| 
      
 111 
     | 
    
         
            +
                      <a href="#M000004" class="method-signature">
         
     | 
| 
      
 112 
     | 
    
         
            +
                      <span class="method-name">breakpoint_handler</span><span class="method-args">(workspace, message)</span>
         
     | 
| 
      
 113 
     | 
    
         
            +
                      </a>
         
     | 
| 
      
 114 
     | 
    
         
            +
                    </div>
         
     | 
| 
      
 115 
     | 
    
         
            +
                  
         
     | 
| 
      
 116 
     | 
    
         
            +
                    <div class="method-description">
         
     | 
| 
      
 117 
     | 
    
         
            +
                      <p><a class="source-toggle" href="#"
         
     | 
| 
      
 118 
     | 
    
         
            +
                        onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
         
     | 
| 
      
 119 
     | 
    
         
            +
                      <div class="method-source-code" id="M000004-source">
         
     | 
| 
      
 120 
     | 
    
         
            +
            <pre>
         
     | 
| 
      
 121 
     | 
    
         
            +
                 <span class="ruby-comment cmt"># File lib/breakpoint_client.rb, line 104</span>
         
     | 
| 
      
 122 
     | 
    
         
            +
            104:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">breakpoint_handler</span>(<span class="ruby-identifier">workspace</span>, <span class="ruby-identifier">message</span>)
         
     | 
| 
      
 123 
     | 
    
         
            +
            105:     <span class="ruby-identifier">puts</span> <span class="ruby-identifier">message</span>
         
     | 
| 
      
 124 
     | 
    
         
            +
            106:     <span class="ruby-constant">IRB</span>.<span class="ruby-identifier">start</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">workspace</span>)
         
     | 
| 
      
 125 
     | 
    
         
            +
            107: 
         
     | 
| 
      
 126 
     | 
    
         
            +
            108:     <span class="ruby-identifier">puts</span> <span class="ruby-value str">""</span>
         
     | 
| 
      
 127 
     | 
    
         
            +
            109:     <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Options</span>[<span class="ruby-identifier">:Verbose</span>] <span class="ruby-keyword kw">then</span>
         
     | 
| 
      
 128 
     | 
    
         
            +
            110:       <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Resumed execution. Waiting for next breakpoint..."</span>, <span class="ruby-value str">""</span>
         
     | 
| 
      
 129 
     | 
    
         
            +
            111:     <span class="ruby-keyword kw">end</span>
         
     | 
| 
      
 130 
     | 
    
         
            +
            112:   <span class="ruby-keyword kw">end</span>
         
     | 
| 
      
 131 
     | 
    
         
            +
            </pre>
         
     | 
| 
      
 132 
     | 
    
         
            +
                      </div>
         
     | 
| 
      
 133 
     | 
    
         
            +
                    </div>
         
     | 
| 
      
 134 
     | 
    
         
            +
                  </div>
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
      
 136 
     | 
    
         
            +
                  <div id="method-M000006" class="method-detail">
         
     | 
| 
      
 137 
     | 
    
         
            +
                    <a name="M000006"></a>
         
     | 
| 
      
 138 
     | 
    
         
            +
             
     | 
| 
      
 139 
     | 
    
         
            +
                    <div class="method-heading">
         
     | 
| 
      
 140 
     | 
    
         
            +
                      <a href="#M000006" class="method-signature">
         
     | 
| 
      
 141 
     | 
    
         
            +
                      <span class="method-name">collision_handler</span><span class="method-args">()</span>
         
     | 
| 
      
 142 
     | 
    
         
            +
                      </a>
         
     | 
| 
      
 143 
     | 
    
         
            +
                    </div>
         
     | 
| 
      
 144 
     | 
    
         
            +
                  
         
     | 
| 
      
 145 
     | 
    
         
            +
                    <div class="method-description">
         
     | 
| 
      
 146 
     | 
    
         
            +
                      <p><a class="source-toggle" href="#"
         
     | 
| 
      
 147 
     | 
    
         
            +
                        onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
         
     | 
| 
      
 148 
     | 
    
         
            +
                      <div class="method-source-code" id="M000006-source">
         
     | 
| 
      
 149 
     | 
    
         
            +
            <pre>
         
     | 
| 
      
 150 
     | 
    
         
            +
                 <span class="ruby-comment cmt"># File lib/breakpoint_client.rb, line 123</span>
         
     | 
| 
      
 151 
     | 
    
         
            +
            123:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collision_handler</span>()
         
     | 
| 
      
 152 
     | 
    
         
            +
            124:     <span class="ruby-identifier">msg</span> = [
         
     | 
| 
      
 153 
     | 
    
         
            +
            125:       <span class="ruby-value str">"  *** Breakpoint service collision ***"</span>,
         
     | 
| 
      
 154 
     | 
    
         
            +
            126:       <span class="ruby-value str">"  Another Breakpoint service tried to use the"</span>,
         
     | 
| 
      
 155 
     | 
    
         
            +
            127:       <span class="ruby-value str">"  port already occupied by this one. It will"</span>,
         
     | 
| 
      
 156 
     | 
    
         
            +
            128:       <span class="ruby-value str">"  keep waiting until this Breakpoint service"</span>,
         
     | 
| 
      
 157 
     | 
    
         
            +
            129:       <span class="ruby-value str">"  is shut down."</span>,
         
     | 
| 
      
 158 
     | 
    
         
            +
            130:       <span class="ruby-value str">"  "</span>,
         
     | 
| 
      
 159 
     | 
    
         
            +
            131:       <span class="ruby-value str">"  If you are using the Breakpoint library for"</span>,
         
     | 
| 
      
 160 
     | 
    
         
            +
            132:       <span class="ruby-value str">"  debugging a Rails or other CGI application"</span>,
         
     | 
| 
      
 161 
     | 
    
         
            +
            133:       <span class="ruby-value str">"  this likely means that this Breakpoint"</span>,
         
     | 
| 
      
 162 
     | 
    
         
            +
            134:       <span class="ruby-value str">"  session belongs to an earlier, outdated"</span>,
         
     | 
| 
      
 163 
     | 
    
         
            +
            135:       <span class="ruby-value str">"  request and should be shut down via 'exit'."</span>
         
     | 
| 
      
 164 
     | 
    
         
            +
            136:     ].<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</span>)
         
     | 
| 
      
 165 
     | 
    
         
            +
            137: 
         
     | 
| 
      
 166 
     | 
    
         
            +
            138:     <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span>[<span class="ruby-value str">"win"</span>] <span class="ruby-keyword kw">then</span>
         
     | 
| 
      
 167 
     | 
    
         
            +
            139:       <span class="ruby-comment cmt"># This sucks. Sorry, I'm not doing this because
         
     | 
| 
      
 168 
     | 
    
         
            +
            140:       <span class="ruby-comment cmt"># I like funky message boxes -- I need to do this
         
     | 
| 
      
 169 
     | 
    
         
            +
            141:       <span class="ruby-comment cmt"># because on Windows I have no way of displaying
         
     | 
| 
      
 170 
     | 
    
         
            +
            142:       <span class="ruby-comment cmt"># my notification via puts() when gets() is still
         
     | 
| 
      
 171 
     | 
    
         
            +
            143:       <span class="ruby-comment cmt"># being performed on STDIN. I have not found a
         
     | 
| 
      
 172 
     | 
    
         
            +
            144:       <span class="ruby-comment cmt"># better solution.
         
     | 
| 
      
 173 
     | 
    
         
            +
            145:       <span class="ruby-keyword kw">begin</span>
         
     | 
| 
      
 174 
     | 
    
         
            +
            146:         <span class="ruby-identifier">require</span> <span class="ruby-value str">'tk'</span>
         
     | 
| 
      
 175 
     | 
    
         
            +
            147:         <span class="ruby-identifier">root</span> = <span class="ruby-constant">TkRoot</span>.<span class="ruby-identifier">new</span> { <span class="ruby-identifier">withdraw</span> }
         
     | 
| 
      
 176 
     | 
    
         
            +
            148:         <span class="ruby-constant">Tk</span>.<span class="ruby-identifier">messageBox</span>(<span class="ruby-value str">'message'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">msg</span>, <span class="ruby-value str">'type'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'ok'</span>)
         
     | 
| 
      
 177 
     | 
    
         
            +
            149:         <span class="ruby-identifier">root</span>.<span class="ruby-identifier">destroy</span>
         
     | 
| 
      
 178 
     | 
    
         
            +
            150:       <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span>
         
     | 
| 
      
 179 
     | 
    
         
            +
            151:         <span class="ruby-identifier">puts</span> <span class="ruby-value str">""</span>, <span class="ruby-identifier">msg</span>, <span class="ruby-value str">""</span>
         
     | 
| 
      
 180 
     | 
    
         
            +
            152:       <span class="ruby-keyword kw">end</span>
         
     | 
| 
      
 181 
     | 
    
         
            +
            153:     <span class="ruby-keyword kw">else</span>
         
     | 
| 
      
 182 
     | 
    
         
            +
            154:       <span class="ruby-identifier">puts</span> <span class="ruby-value str">""</span>, <span class="ruby-identifier">msg</span>, <span class="ruby-value str">""</span>
         
     | 
| 
      
 183 
     | 
    
         
            +
            155:     <span class="ruby-keyword kw">end</span>
         
     | 
| 
      
 184 
     | 
    
         
            +
            156:   <span class="ruby-keyword kw">end</span>
         
     | 
| 
      
 185 
     | 
    
         
            +
            </pre>
         
     | 
| 
      
 186 
     | 
    
         
            +
                      </div>
         
     | 
| 
      
 187 
     | 
    
         
            +
                    </div>
         
     | 
| 
      
 188 
     | 
    
         
            +
                  </div>
         
     | 
| 
      
 189 
     | 
    
         
            +
             
     | 
| 
      
 190 
     | 
    
         
            +
                  <div id="method-M000005" class="method-detail">
         
     | 
| 
      
 191 
     | 
    
         
            +
                    <a name="M000005"></a>
         
     | 
| 
      
 192 
     | 
    
         
            +
             
     | 
| 
      
 193 
     | 
    
         
            +
                    <div class="method-heading">
         
     | 
| 
      
 194 
     | 
    
         
            +
                      <a href="#M000005" class="method-signature">
         
     | 
| 
      
 195 
     | 
    
         
            +
                      <span class="method-name">eval_handler</span><span class="method-args">(code)</span>
         
     | 
| 
      
 196 
     | 
    
         
            +
                      </a>
         
     | 
| 
      
 197 
     | 
    
         
            +
                    </div>
         
     | 
| 
      
 198 
     | 
    
         
            +
                  
         
     | 
| 
      
 199 
     | 
    
         
            +
                    <div class="method-description">
         
     | 
| 
      
 200 
     | 
    
         
            +
                      <p><a class="source-toggle" href="#"
         
     | 
| 
      
 201 
     | 
    
         
            +
                        onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
         
     | 
| 
      
 202 
     | 
    
         
            +
                      <div class="method-source-code" id="M000005-source">
         
     | 
| 
      
 203 
     | 
    
         
            +
            <pre>
         
     | 
| 
      
 204 
     | 
    
         
            +
                 <span class="ruby-comment cmt"># File lib/breakpoint_client.rb, line 114</span>
         
     | 
| 
      
 205 
     | 
    
         
            +
            114:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eval_handler</span>(<span class="ruby-identifier">code</span>)
         
     | 
| 
      
 206 
     | 
    
         
            +
            115:     <span class="ruby-identifier">result</span> = <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">code</span>, <span class="ruby-constant">TOPLEVEL_BINDING</span>)
         
     | 
| 
      
 207 
     | 
    
         
            +
            116:     <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span> <span class="ruby-keyword kw">then</span>
         
     | 
| 
      
 208 
     | 
    
         
            +
            117:       <span class="ruby-constant">DRbObject</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">result</span>)
         
     | 
| 
      
 209 
     | 
    
         
            +
            118:     <span class="ruby-keyword kw">else</span>
         
     | 
| 
      
 210 
     | 
    
         
            +
            119:       <span class="ruby-identifier">result</span>
         
     | 
| 
      
 211 
     | 
    
         
            +
            120:     <span class="ruby-keyword kw">end</span>
         
     | 
| 
      
 212 
     | 
    
         
            +
            121:   <span class="ruby-keyword kw">end</span>
         
     | 
| 
      
 213 
     | 
    
         
            +
            </pre>
         
     | 
| 
      
 214 
     | 
    
         
            +
                      </div>
         
     | 
| 
      
 215 
     | 
    
         
            +
                    </div>
         
     | 
| 
      
 216 
     | 
    
         
            +
                  </div>
         
     | 
| 
      
 217 
     | 
    
         
            +
             
     | 
| 
      
 218 
     | 
    
         
            +
             
     | 
| 
      
 219 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 220 
     | 
    
         
            +
             
     | 
| 
      
 221 
     | 
    
         
            +
             
     | 
| 
      
 222 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 223 
     | 
    
         
            +
             
     | 
| 
      
 224 
     | 
    
         
            +
             
     | 
| 
      
 225 
     | 
    
         
            +
            <div id="validator-badges">
         
     | 
| 
      
 226 
     | 
    
         
            +
              <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
         
     | 
| 
      
 227 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 228 
     | 
    
         
            +
             
     | 
| 
      
 229 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 230 
     | 
    
         
            +
            </html>
         
     |