Logging

I’m not sure if this is possible, but I’ll put it out there.

Let’s say I have something like this:

try:
	system.runQuery(q)
except:
	print "Query Failed"

In the print statement, would it be possible to somehow pass in the line number, so I saw something like “Query Failed at line 54”. This would be helpful if I am calling a function from multiple places, and would give me the same useful information that the error dialog would give if I didn’t use try/except.

Try something like this:

import sys frame = sys._getframe(0) print "line: ", frame.f_lineno

Just the ticket! Thanks. And while we’re on the subject of debugging and logging…

Would it be hard to add a feature where function calls were set in bold or to a different color? It would help with more complex scripts where there are a lot of calls.

Step7,

I am located in Boston and was wondering if you were available for a side discussion. Please contact me at Ryan@FeedResource.com

Thanks,

Ryan

Sure, we could update the syntax highlighter to emphasize function calls somehow.