GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::debugger Class Reference
Collaboration diagram for octave::debugger:

Public Types

enum  execution_mode { EX_NORMAL = 0 , EX_CONTINUE = 1 , EX_QUIT = 2 , EX_QUIT_ALL = 3 }
 

Public Member Functions

 debugger (interpreter &interp, size_t level)
 
void dbcont (void)
 
void dbquit (bool all=false)
 
bool in_debug_repl (void) const
 
bool quitting_debugger (void) const
 
void repl (const std::string &prompt="debug> ")
 

Private Attributes

size_t m_debug_frame
 
execution_mode m_execution_mode
 
bool m_in_debug_repl
 
interpreterm_interpreter
 
size_t m_level
 

Detailed Description

Definition at line 97 of file pt-eval.cc.

Member Enumeration Documentation

◆ execution_mode

Enumerator
EX_NORMAL 
EX_CONTINUE 
EX_QUIT 
EX_QUIT_ALL 

Definition at line 101 of file pt-eval.cc.

Constructor & Destructor Documentation

◆ debugger()

octave::debugger::debugger ( interpreter interp,
size_t  level 
)
inline

Definition at line 109 of file pt-eval.cc.

Member Function Documentation

◆ dbcont()

void octave::debugger::dbcont ( void  )
inline

Definition at line 118 of file pt-eval.cc.

References EX_CONTINUE, and m_execution_mode.

◆ dbquit()

void octave::debugger::dbquit ( bool  all = false)
inline

Definition at line 123 of file pt-eval.cc.

References EX_QUIT, EX_QUIT_ALL, and m_execution_mode.

◆ in_debug_repl()

bool octave::debugger::in_debug_repl ( void  ) const
inline

Definition at line 116 of file pt-eval.cc.

References m_in_debug_repl.

◆ quitting_debugger()

bool octave::debugger::quitting_debugger ( void  ) const

◆ repl()

void octave::debugger::repl ( const std::string &  prompt = "debug> ")

Definition at line 143 of file pt-eval.cc.

References octave::action_container::add(), octave::action_container::add_method(), octave::quit_debug_exception::all(), octave::application::app(), octave::tree_evaluator::current_call_stack_frame_number(), octave::tree_evaluator::current_line(), octave::tree_evaluator::current_user_code(), octave::tree_evaluator::current_user_frame(), octave::tree_evaluator::dbstep_flag(), octave::tree_evaluator::debug_frame(), octave::command_editor::decode_prompt_string(), octave::error_system::display_exception(), octave::event_manager::enter_debugger_event(), octave::command_editor::erase_empty_line(), EX_CONTINUE, octave::event_manager::execute_in_debugger_event(), octave_user_code::fcn_file_name(), octave::application::forced_interactive(), octave_user_code::get_code_line(), octave::interpreter::get_error_system(), octave::interpreter::get_evaluator(), octave::interpreter::get_event_manager(), octave::input_reader::get_input(), octave::interpreter::get_input_system(), octave::tree_evaluator::goto_frame(), octave::input_system::gud_mode(), octave::interpreter::interactive(), octave::command_editor::interrupt(), m_execution_mode, m_in_debug_repl, m_interpreter, m_level, octave_function::name(), octave_completion_matches_called, octave::action_container::protect_var(), octave::input_system::PS1(), octave::input_system::PS2(), octave::tree_evaluator::quiet_breakpoint_flag(), quitting_debugger(), octave::interpreter::recover_from_exception(), octave::base_parser::reset(), octave::tree_evaluator::restore_frame(), retval, octave::push_parser::run(), octave::error_system::save_exception(), octave::input_system::set_PS1(), octave::event_manager::set_workspace(), and octave::base_parser::statement_list().

Referenced by octave::tree_evaluator::enter_debugger().

Member Data Documentation

◆ m_debug_frame

size_t octave::debugger::m_debug_frame
private

Definition at line 138 of file pt-eval.cc.

◆ m_execution_mode

execution_mode octave::debugger::m_execution_mode
private

Definition at line 139 of file pt-eval.cc.

Referenced by dbcont(), dbquit(), quitting_debugger(), and repl().

◆ m_in_debug_repl

bool octave::debugger::m_in_debug_repl
private

Definition at line 140 of file pt-eval.cc.

Referenced by in_debug_repl(), and repl().

◆ m_interpreter

interpreter& octave::debugger::m_interpreter
private

Definition at line 135 of file pt-eval.cc.

Referenced by quitting_debugger(), and repl().

◆ m_level

size_t octave::debugger::m_level
private

Definition at line 137 of file pt-eval.cc.

Referenced by quitting_debugger(), and repl().


The documentation for this class was generated from the following file: