PikeDebugger

[ Start > PikeDevel > PikeDebugger ] [ Edit this Page | Viewing Version 2 ]


Work on permitting pike code to be debugged interactively is underway, and currently exists as a rough proof of concept in branch bill/debugger-concept. The debugger requires pike to be compiled with --with-debug and can be enabled using --debugger option to pike, with enables a hilfe server on port 3333

Current features of the POC:

- Can set a single breakpoint.

  • Hilfe interface
  • Backtrace viewing
  • View locals (but names are not resolved)
  • Modify locals
  • Single stepping
  • Continue

    Things that need to be done:

    - Support multiple breakpoints (store and search breakpoint multiple info.)

  • Breakpoint removal
  • Frame stack browsing
  • Local name calculation
  • A programmatic interface to the debugger
  • Related: should pike pause to wait for a debugger to connect for breakpoints, etc to be set?
  • Step-over, in, return, etc. These require understanding of code structure
  • Watchpoints?
  • Efficiency improvements?
  • Work to not require RTL debug
  • Make ports configurable

    Set breakpoint using this method:

// set a breakpoint at line 22 in the current program program p = this_program; add_breakpoint(p, 22);

Powered by PikeWiki2

 
gotpike.org | Copyright © 2004 - 2009 | Pike is a trademark of Department of Computer and Information Science, Linköping University