If i try run this code with redirect console to /dev/pty/1 in eclipse debugger configuration. When i press key in /dev/pty/1 breackpoint doen't work and i can't see text. How setup eclipse to redirect stdin from /dev/pty/1 or maybe you can give me anower way to debug code with curses.#!/usr/bin/env perl use Curses; my $win = Curses->new or die "Can't get new window\n"; initscr(); noecho(); raw(); nodelay(1); $win->keypad(1); $win->addstr ("Try press key\n") while ((my $key = $win->getch()) ne ERR) { $win->addstr ("key $key\n"); #<-breackpoint }
In reply to Eclipse and debug curses by alexx_sh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |