Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Padre: how to view/examine Unicode strings in the debugger?

by HelenCr (Monk)
on Feb 25, 2012 at 01:30 UTC ( [id://956030]=perlquestion: print w/replies, xml ) Need Help??

HelenCr has asked for the wisdom of the Perl Monks concerning the following question:

Hi wizards. I have a project dealing with Unicode text manipulation. I am using Perl 5.014 and the Padre debugger v 0.86 (that's the latest Padre version for ActiveState Perl distribution).

In Padre, it's important to be able to view (examine/inspect) the program variables in the "Debugger" pane at the right hand side, especially the Unicode strings. It turns out that the debugger pane does not show the strings in their character glyphs. For scalars, it show gibberish, and for arrays, it shows them in the "\x{05FF} notation, which is cryptic and un-intuitive.

Is there a way to make Padre show the strings in the right glyphs? Going: "View -> Language" and changing the language doesn't help. It affects only the menus.
Note that in the editor, Unicode literals are shown right.
I am running Windows 7 x64.
I do have these in the program:

... use utf8; ... binmode(STDOUT, ":unix:utf8"); binmode $DB::OUT, ':unix:utf8' if $DB::OUT; ...
Note: cross posted on StackOverflow

Replies are listed 'Best First'.
Re: Padre: how to view/examine Unicode strings in the debugger?
by Anonymous Monk on Feb 25, 2012 at 01:54 UTC

    If you print them, wouldn't they will be printed to the output pane? And isn't the output pane unicode aware? There you go :)

      It's not convenient to debug by printing. The whole advantage of a debugger is, that you can inspect variables while stepping through the program.

        It's not convenient to debug by printing. The whole advantage of a debugger is, that you can inspect variables while stepping through the program.

        hello, you can print from the debugger, esp if you don't like the default Dumper style output

        you can also improve the debugger to your liking

        I think the aim of the response you got, was to isolate where the problem lays.

        Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://956030]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found