GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
debugger Class Reference
Collaboration diagram for 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, std::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> ")
 
int server_loop (void)
 

Private Attributes

execution_mode m_execution_mode
 
bool m_in_debug_repl
 
interpreterm_interpreter
 
std::size_t m_level
 

Detailed Description

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

Member Enumeration Documentation

◆ execution_mode

Enumerator
EX_NORMAL 
EX_CONTINUE 
EX_QUIT 
EX_QUIT_ALL 

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

Constructor & Destructor Documentation

◆ debugger()

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

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

Member Function Documentation

◆ dbcont()

void debugger::dbcont ( void  )
inline

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

References EX_CONTINUE, and m_execution_mode.

◆ dbquit()

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

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

References EX_QUIT, EX_QUIT_ALL, and m_execution_mode.

◆ in_debug_repl()

bool debugger::in_debug_repl ( void  ) const
inline

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

References m_in_debug_repl.

◆ quitting_debugger()

bool debugger::quitting_debugger ( void  ) const

◆ repl()

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

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

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

Referenced by tree_evaluator::enter_debugger().

◆ server_loop()

Member Data Documentation

◆ m_execution_mode

execution_mode debugger::m_execution_mode
private

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

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

◆ m_in_debug_repl

bool 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& debugger::m_interpreter
private

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

Referenced by quitting_debugger(), repl(), and server_loop().

◆ m_level

std::size_t debugger::m_level
private

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

Referenced by quitting_debugger(), and repl().


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