开发者

How to make the script to return with specified value in Perl debugger?

开发者 https://www.devze.com 2023-03-29 20:18 出处:网络
I tried various ways, but none works... DB<4> T . = main::t() called from file `dbg\' line 6 DB<4> return;

I tried various ways, but none works...

  DB<4> T
. = main::t() called from file `dbg' line 6
  DB<4> return;

  DB<5> T
. = main::t() called from file `dbg' line 6
  DB<5> return 1;

  DB<6> T
. = main::t() called from file `dbg' line 6
  DB<6> eval('return')

  DB<7> T
. = main::t() called from file `dbg' line 6

The point is I don't want the subsequent co开发者_如何学JAVAde to be run, just return with specified value.

So it's not r.


This is obviously ghetto but you could wait until you pop back out of routine and then manually set the lvalue before proceeding in the calling routine.

0

精彩评论

暂无评论...
验证码 换一张
取 消