|
wex
v21.04.0
|
Offers a debug that allows you to use an stc component as graphical interface for a debug process (e.g. More...
#include <wex/debug.h>
Inherits wxEvtHandler.
Public Member Functions | |
| debug (managed_frame *frame, process *process=nullptr) | |
| Constructor. | |
| int | add_menu (menu *menu, bool popup=false) const |
| Adds debug menu items to specified menu, default as no popup menu. More... | |
| bool | apply_breakpoints (stc *stc) const |
| Applies current breakpoints markers to stc component if applicable. More... | |
| auto & | breakpoints () const |
| Returns breakpoints. | |
| const auto & | debug_entry () const |
| Returns current entry. | |
| bool | execute (const std::string &action, stc *stc=nullptr) |
| Executes the item action using the current debug process, if there is not yet a debug process, invokes frame::process to allow derived classed to provide one, and optionally use an stc component for extra input / output. More... | |
| bool | execute (int id, stc *stc=nullptr) |
| As above, but for a menu action item. | |
| bool | is_active () const |
| Returns true if a debug session is active. | |
| bool | print (const std::string &variable) const |
| Ask debugger to print contents of variable. More... | |
| bool | show_dialog (frame *parent) |
| Shows dialog to select debug entry. | |
| bool | toggle_breakpoint (int line, stc *stc) |
| Toggles breakpoint on line. More... | |
Offers a debug that allows you to use an stc component as graphical interface for a debug process (e.g.
gdb).
| int wex::debug::add_menu | ( | menu * | menu, |
| bool | popup = false |
||
| ) | const |
Adds debug menu items to specified menu, default as no popup menu.
These menus allow you to interact with the debug process. Returns number of items added to menu.
| bool wex::debug::apply_breakpoints | ( | stc * | stc | ) | const |
Applies current breakpoints markers to stc component if applicable.
Returns false if no markers were added.
| bool wex::debug::execute | ( | const std::string & | action, |
| stc * | stc = nullptr |
||
| ) |
Executes the item action using the current debug process, if there is not yet a debug process, invokes frame::process to allow derived classed to provide one, and optionally use an stc component for extra input / output.
Returns false if cancelled, or no debug process available.
| bool wex::debug::print | ( | const std::string & | variable | ) | const |
Ask debugger to print contents of variable.
Returns false if no debug process is available.
| bool wex::debug::toggle_breakpoint | ( | int | line, |
| stc * | stc | ||
| ) |
Toggles breakpoint on line.
Returns false if no debug process is available.