First time here? Check out the FAQ!

Revision history  [back]

There's no way to configure Wing to change what it's displaying in Stack Data. The intention for that is to show what is there in the data. Anything else could be very confusing and counter-productive to debugging, for example if you're trying to track down a bug caused by the presence of those escape codes.

One idea would be to write a function to strip them, say "strip_junk", and call that either by adding strip_junk(value) to the Watch tool or more probably preferably by using the Debug Console and typing strip_junk(value).

Or if this is a place in your code where you're constantly running into this for some reason then you could add conditional code like:

if 'WINGDB_ACTIVE' in os.environ:
   other_value = strip_junk(value)

Then other_value would show up in Stack Data.