[prev in list] [next in list] [prev in thread] [next in thread]
List: grinder-use
Subject: Re: [Grinder-use] script debugging recommendations
From: Gary Mulder <flyingkiwiguy () gmail ! com>
Date: 2012-10-18 11:58:32
Message-ID: CAKy9zTB1MjFvB+TTd_3kOb5dTxVj4YJfQB9vNYAc7rCNt5Un1A () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On 17 October 2012 23:31, Rob Schroder <rschroder@onekingslane.com> wrote:
> Can someone point me to documentation on how to debug scripts outside of
> The Grinder?
>
Since Grinder is executing your Jython scripts, then you'll need to use
Grinder to debug them. Some suggestions:
Set a global debug=True flag in your scripts while debugging, and then add
some logic like:
if debug: grinder.logger.output("verbose information about what your script
is doing")
Turn the flag off when you've finished debugging.
If you're concerned about getting Jython syntax correct, have a look at
Eclipse or another IDE that validates Jython syntax.
Hope that helps,
Gary
[Attachment #5 (text/html)]
On 17 October 2012 23:31, Rob Schroder <span dir="ltr"><<a \
href="mailto:rschroder@onekingslane.com" \
target="_blank">rschroder@onekingslane.com</a>></span> wrote:<br><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> Can someone point me to \
documentation on how to debug scripts outside of The \
Grinder?<br></blockquote><div><br></div><div>Since Grinder is executing your Jython \
scripts, then you'll need to use Grinder to debug them. Some suggestions:</div> \
<div><br></div><div>Set a global <font face="courier new, \
monospace">debug=True</font> flag in your scripts while debugging, and then add some \
logic like:</div><div><br></div></div><blockquote style="margin:0 0 0 \
40px;border:none;padding:0px"> <div class="gmail_quote"><div><font face="courier new, \
monospace">if debug: grinder.logger.output("verbose information about what your \
script is doing") </font></div><div><br></div></div></blockquote>Turn the flag \
off when you've finished debugging.<div> <br></div><div>If you're concerned \
about getting Jython syntax correct, have a look at Eclipse or another IDE that \
validates Jython syntax.<div><br></div><div>Hope that \
helps,</div><div>Gary</div></div>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic