Overview
Comment: | Added more examples |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.65-debugging-update-orig |
Files: | files | file ages | folders |
SHA1: |
72181ffee3303d10a0619e01a2a6e9ca |
User & Date: | mrwellan on 2021-09-13 10:12:06 |
Other Links: | branch diff | manifest | tags |
Context
2021-09-15
| ||
15:53 | Updated manual check-in: e04d99ce6b user: mrwellan tags: v1.65-debugging-update-orig | |
2021-09-13
| ||
10:12 | Added more examples check-in: 72181ffee3 user: mrwellan tags: v1.65-debugging-update-orig | |
10:03 | Added Perl example of using xterm for tool debug check-in: 342fe04d52 user: mrwellan tags: v1.65-debugging-update-orig | |
Changes
Modified docs/manual/debugging.txt from [d79a29d877] to [700bcb2a77].
︙ | ︙ | |||
245 246 247 248 249 250 251 | system($cmdline); more_code(); .............................. Misc Other Debugging Hints ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | > | > > > > > > > < < < < | 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 | system($cmdline); more_code(); .............................. Misc Other Debugging Hints ~~~~~~~~~~~~~~~~~~~~~~~~~~ Annotating scripts and config files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Run the "env" command to record the environment: env | sort > stagename.log In a config file: .megatest.config, runconfigs.config and testconfig ................... #{shell env | sort > stagename.log} # or [system env | sort > stagename.log} ................... In scripts just insert the commands, this example helps you identify if "some commands ..." changed any environment variables.: .myscript.sh .............................. env > somefile-before.log some commands ... env > somefile-after.log .............................. .Use meld to examine the differences .............................. meld somefile-before.log somefile-after.log .............................. Start an xterm to examine the environment, run scripts etc: In a config file: .megatest.config, runconfigs.config and testconfig files .............................. #{shell xterm} (this blocks) .............................. Similarly in a script just call the xterm. |
Modified docs/manual/megatest_manual.html from [c87e467a54] to [883a723b50].
︙ | ︙ | |||
2187 2188 2189 2190 2191 2192 2193 | more_code();</pre> </div></div> </div> </div> <div class="sect2"> <h3 id="_misc_other_debugging_hints">Misc Other Debugging Hints</h3> <div class="sect3"> | | | > | > > > > > > > | < < < < | 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 | more_code();</pre> </div></div> </div> </div> <div class="sect2"> <h3 id="_misc_other_debugging_hints">Misc Other Debugging Hints</h3> <div class="sect3"> <h4 id="_annotating_scripts_and_config_files">Annotating scripts and config files</h4> <div class="paragraph"><p>Run the "env" command to record the environment:</p></div> <div class="paragraph"><p>env | sort > stagename.log</p></div> <div class="paragraph"><p>In a config file:</p></div> <div class="literalblock"> <div class="title">megatest.config, runconfigs.config and testconfig</div> <div class="content monospaced"> <pre>#{shell env | sort > stagename.log} # or [system env | sort > stagename.log}</pre> </div></div> <div class="paragraph"><p>In scripts just insert the commands, this example helps you identify if "some commands …" changed any environment variables.:</p></div> <div class="literalblock"> <div class="title">myscript.sh</div> <div class="content monospaced"> <pre>env > somefile-before.log some commands ... env > somefile-after.log</pre> </div></div> <div class="literalblock"> <div class="title">Use meld to examine the differences</div> <div class="content monospaced"> <pre>meld somefile-before.log somefile-after.log</pre> </div></div> <div class="paragraph"><p>Start an xterm to examine the environment, run scripts etc:</p></div> <div class="paragraph"><p>In a config file:</p></div> <div class="literalblock"> <div class="title">megatest.config, runconfigs.config and testconfig files</div> <div class="content monospaced"> <pre>#{shell xterm} (this blocks)</pre> </div></div> <div class="paragraph"><p>Similarly in a script just call the xterm.</p></div> </div> </div> </div> </div> <div class="sect1"> |
︙ | ︙ |
Modified docs/manual/megatest_manual.pdf from [cc3143ceae] to [17dba19c2a].
cannot compute difference between binary files