I have python pretty printers enabled on my system. Print and display work
fine but

the watch variable list gives the raw container output.Is there a way to
enable pretty printers in (clewn)_variables list?This is what the output
looks like on the (clewn)_variables buffer.

[-] var1: (std::vector<int, std::allocator<int> >) v ={=} {...}

  [+] var1.std::_Vector_base<int, std::allocator<int> >: ()
std::_Vector_base<int, std::allocator<int> > ={=}

[-] var2: (std::__cxx11::string                  ) s ={=} {...}

  [-] var2.public : () public  ={=}

     *  var2.public.npos: (const std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::size_type) npos ={=}
18446744073709551615

  [-] var2.private: () private ={=}

    [+] var2.private._M_dataplus     : (
                                                       ) _M_dataplus
={*}

     *  var2.private._M_string_length: (std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::size_type) _M_string_length
 ={*} 11

    [+] var2.private.2_anonymous     : (
                                                       ) <anonymous union>
={*}

This is the output of print and display commands

(gdb) print v

$1 = std::vector of length 2, capacity 2 = {2, 3}

(gdb) print s

$2 = "HELLO WORLD"

(gdb) display s

1: s = "HELLO WORLD"

(gdb) display v

2: v = std::vector of length 2, capacity 2 = {2, 3}

(gdb)

Thanks.
------------------------------------------------------------------------------
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general

Reply via email to