项目作者: KES777

项目描述 :
Perl debugger
高级语言: Perl
项目地址: git://github.com/KES777/Devel-DebugHooks.git
创建时间: 2016-03-26T11:56:18Z
项目社区:https://github.com/KES777/Devel-DebugHooks

开源协议:Other

下载


Perl debugger Build Status Flattr Button

How to run:

  1. perl -d:DebugHooks::Terminal script.pl
  2. ## Debug remotely
  3. # FIX harcoded server:port at
  4. # Devel::DebugHooks::Server.pm:107
  5. # on remote server with IP 1.2.3.4
  6. perl -d:DebugHooks::Server script.pl
  7. # on local
  8. dclient.pl 1.2.3.4 9000
  9. # if server on same machine
  10. dclient.pl

Quick guide for commands:

  1. s - single step. Trace into
  2. n - single step. Trace over
  3. r - return from sub.
  4. go - run script until the end or next trap
  5. go N - run script to 'N' line
  6. q - quit debugger
  7. R - restart debugging. Works only while remotely debugging script runned under uwsgi
  8. f - list all files
  9. f regex - list all files that match regex
  10. f N - set 'N' file as current
  11. l . - list source at current step
  12. l - list next source page
  13. l $coderef - deparce subroutine
  14. l -N - list source for N frame
  15. l &N - deparse subroutine for N frame
  16. vars - show variables visible from current step
  17. vars N - show variables visible from N frame
  18. vars N $var - show value from $var variable at N frame
  19. t [$x|@x|%x] - trace and log into 'vars.log' access to given variable
  20. T - stack trace.
  21. T N - show only N last frames
  22. NOTICE: stacktrace will shows GOTO!!! frames also
  23. b - list all traps
  24. b . - set trap at current step
  25. b . condition - set conditional trap
  26. b [+|-][file:|M:]N - set trap at given file:line
  27. + - enable trap
  28. - - disable trap
  29. file - absolute path to file
  30. M - number from 'f' command output
  31. N - line number at file
  32. save|load - Save/Load info about traps into ~/.dbginit file
  33. a expr - set action
  34. A expr - remove action
  35. w expr - set watch
  36. W expr - remove watch
  37. expr - evaluate 'expr' from user's script perspective
  38. e expr - evaluate 'expr' from user's script perspective and Data::Dump::pp results
  39. ge - run editor for current file
  40. ge file:N - run editor for given file

This module implement for shortcut invader operator x::x; this is same as $DB::single = 1;