Improve python debugging
I am really excited to try python in TestComplete. I did however notice some useless(to me) behavior in the locals/watch list panel when debugging python code.
I only know of list/dict type variables that act this way, but it is possible that there are other examples too.
My previous projects have been using Jscript. When I have an array variable in Jscript and open it in the locals/watch list panel when debugging, the result is this: http://tinyurl.com/non6j9p. I can clearly see the contents at each index of the array as expected. It works similarly with Jscript objects and properties.
Instead of array type variables, Python has list type variables. And in most of my cases, I can use a Python dict type variable instead of a Jscript object variable. I expected that the debugger behaves the same way. This is not the case however.
When I open a list type variable in the locals or watch list panel, I do not see the contents of the list, but the names of the functions that I can call upon that list instead: http://tinyurl.com/q4ujt4h. This is useless to me. I know what functions I can call upon a list variable, there is language documentation for that. I want to see what the contents are, but it is not shown. The behavior is the same for dict type variables. I see a list of function names instead of the contents of the dict.
I wrote some code on how I expected the contents of list and dictionary variables to be presented in the locals/watch list panel:
I do not like using this code, as it does nothing then be a workaround to an editor specific problem, and I expected this behavior to be built-in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.