Navigation

Operators and Keywords

Function List:

C++ API

debug.cc File Reference

#include <deque>
#include <fstream>
#include <iostream>
#include <set>
#include <string>
#include "file-stat.h"
#include "defun.h"
#include "error.h"
#include "help.h"
#include "input.h"
#include "pager.h"
#include "oct-obj.h"
#include "utils.h"
#include "parse.h"
#include "symtab.h"
#include "gripes.h"
#include "ov.h"
#include "ov-usr-fcn.h"
#include "ov-fcn.h"
#include "ov-list.h"
#include "ov-struct.h"
#include "pt-pr-code.h"
#include "pt-bp.h"
#include "pt-eval.h"
#include "pt-stmt.h"
#include "toplev.h"
#include "unwind-prot.h"
#include "variables.h"
#include "debug.h"

Include dependency graph for debug.cc:


Functions

std::string get_file_line (const std::string &fname, size_t line)
std::string do_find_bkpt_list (octave_value_list slist, std::string match)
 DEFUN (dbstop, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{rline} =} dbstop (@var{func}, @var{line}, @dots{})\n\ Set a breakpoint in a function\n\ @table @code\n\ @item func\n\ String representing the function name. When already in debug\n\ mode this should be left out and only the line should be given.\n\ @item line\n\ Line number you would like the breakpoint to be set on. Multiple\n\ lines might be given as separate arguments or as a vector.\n\ @end table\n\ \n\ The rline returned is the real line that the breakpoint was set at.\n\ @seealso{dbclear, dbstatus, dbstep}\n\ @end deftypefn")
 DEFUN (dbclear, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} dbclear (@var{func}, @var{line}, @dots{})\n\ Delete a breakpoint in a function\n\ @table @code\n\ @item func\n\ String representing the function name. When already in debug\n\ mode this should be left out and only the line should be given.\n\ @item line\n\ Line number where you would like to remove the breakpoint. Multiple\n\ lines might be given as separate arguments or as a vector.\n\ @end table\n\ No checking is done to make sure that the line you requested is really\n\ a breakpoint. If you get the wrong line nothing will happen.\n\ @seealso{dbstop, dbstatus, dbwhere}\n\ @end deftypefn")
 DEFUN (dbstatus, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {lst =} dbstatus (@var{func})\n\ Return a vector containing the lines on which a function has \n\ breakpoints set.\n\ @table @code\n\ @item func\n\ String representing the function name. When already in debug\n\ mode this should be left out.\n\ @end table\n\ @seealso{dbclear, dbwhere}\n\ @end deftypefn")
 DEFUN (dbwhere,,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} dbwhere ()\n\ Show where we are in the code\n\ @seealso{dbclear, dbstatus, dbstop}\n\ @end deftypefn")
void do_dbtype (std::ostream &os, const std::string &name, int start, int end)
 DEFUN (dbtype, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} dbtype ()\n\ List script file with line numbers.\n\ @seealso{dbclear, dbstatus, dbstop}\n\ @end deftypefn")
 DEFUN (dbstack, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@var{stack}, @var{idx}]} dbstack (@var{n})\n\ Print or return current stack information. With optional argument\n\ @var{n}, omit the @var{n} innermost stack frames.\n\ @seealso{dbclear, dbstatus, dbstop}\n\ @end deftypefn")
 DEFUN (dbup, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} dbup\n\ @deftypefnx {Loadable Function} {} dbup (@var{n})\n\ In debugging mode, move up the execution stack @var{n} frames.\n\ If @var{n} is omitted, move up one frame.\n\ @seealso{dbstack}\n\ @end deftypefn")
 DEFUN (dbdown, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} dbdown\n\ @deftypefnx {Loadable Function} {} dbdown (@var{n})\n\ In debugging mode, move down the execution stack @var{n} frames.\n\ If @var{n} is omitted, move down one frame.\n\ @seealso{dbstack}\n\ @end deftypefn")
 DEFUN (dbstep, args,,"-*- texinfo -*-\n\ @deftypefn {Command} {} dbstep\n\ @deftypefnx {Command} {} dbstep @var{n}\n\ @deftypefnx {Command} {} dbstep in\n\ @deftypefnx {Command} {} dbstep out\n\ In debugging mode, execute the next @var{n} lines of code.\n\ If @var{n} is omitted , execute the next single line of code.\n\ If the next line of code is itself\n\ defined in terms of an m-file remain in the existing function.\n\ \n\ Using @code{dbstep in} will cause execution of the next line to step into\n\ any m-files defined on the next line. Using @code{dbstep out} will cause\n\ execution to continue until the current function returns.\n\ @seealso{dbcont, dbquit}\n\ @end deftypefn")
 DEFALIAS (dbnext, dbstep)
 DEFUN (dbcont, args,,"-*- texinfo -*-\n\ @deftypefn {Command} {} dbcont\n\ In debugging mode, quit debugging mode and continue execution.\n\ @seealso{dbstep, dbquit}\n\ @end deftypefn")
 DEFUN (dbquit, args,,"-*- texinfo -*-\n\ @deftypefn {Command} {} dbquit\n\ In debugging mode, quit debugging mode and return to the top level.\n\ @seealso{dbstep, dbcont}\n\ @end deftypefn")
 DEFUN (isdebugmode, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} isdebugmode ()\n\ Return true if debug mode is on, otherwise false.\n\ @seealso{dbstack, dbclear, dbstop, dbstatus}\n\ @end deftypefn")

Function Documentation

DEFALIAS ( dbnext  ,
dbstep   
)

DEFUN ( isdebugmode  ,
args   
)

DEFUN ( dbquit  ,
args   
)

DEFUN ( dbcont  ,
args   
)

DEFUN ( dbstep  ,
args   
)

DEFUN ( dbdown  ,
args   
)

DEFUN ( dbup  ,
args   
)

DEFUN ( dbstack  ,
args  ,
nargout   
)

DEFUN ( dbtype  ,
args   
)

DEFUN ( dbwhere   ) 

DEFUN ( dbstatus  ,
args  ,
nargout   
)

DEFUN ( dbclear  ,
args   
)

DEFUN ( dbstop  ,
args   
)

void do_dbtype ( std::ostream os,
const std::string name,
int  start,
int  end 
)

std::string do_find_bkpt_list ( octave_value_list  slist,
std::string  match 
)

std::string get_file_line ( const std::string fname,
size_t  line 
)