Re: [BLACKBOX] Pause or single-step a program
----boundary-LibPST-iamunique-1488226198_-_-
Content-type: text/plain
Stephen,
Here is another thought.
{([at]})nowhere.xydisplays the values of the global variables in the module whose name
is selected '{([at]})nowhere.xy
I know that is not what you really want but looking at the source code for DevDebug.ShowGlobalVariables
I see that it uses ShowGlobals which is passed a Kernel.Module. You might be able to make a personal
copy of DevDebug and modify it to allow you to dump the variables you desire at selected points in
your code.
Just a thought.
-Doug Danforth
On 9/2/2011 2:19 PM, Stephen R. Troy wrote:
Dear List,
I need to debug a program. I want to be able to pause normal execution so I can examine the values of certain variables, then resume execution. I can see an obvious way to do it, by calling a procedure that will execute a loop until the value of a global Boolean variable changes. But since this requirement must have come up before, I hoped somebody could suggest a more elegant method. Thanks for any suggestions.
Steve Troy
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-1488226198_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3NcZmNoYXJzZXQwIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYy
XGZuaWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIg
TmV3O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1
O30NClx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjQgDQp7XCpcaHRtbHRhZzE5IDxo
dG1sPn0NCntcKlxodG1sdGFnMiBccGFyIH0NCntcKlxodG1sdGFnMjQyICAgfQ0Ke1wqXGh0bW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NLQk9YIiB0byBMSVNUU0VSVkBM
SVNUUy5PQkVST04uQ0gNCntcKlxodG1sdGFnNCBccGFyIH1caHRtbHJ0ZiAgXGh0bWxydGYwIFxo
dG1scnRmXHBhcn1caHRtbHJ0ZjANCn0=
----boundary-LibPST-iamunique-1488226198_-_---
Received on Sat Sep 03 2011 - 00:12:35 UTC
This archive was generated by hypermail 2.3.0
: Thu Sep 26 2013 - 06:30:11 UTC