diff options
author | Maurice Hieronymus <maurice_hieronymus@yahoo.de> | 2021-07-11 17:38:38 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-12 00:47:04 +0200 |
commit | dfc33cd4129759fae2d96cabfed830a3360208f5 (patch) | |
tree | 77da2ae01fc9dba732ea72b6777c090742f2b3a2 /Userland/DevTools/HackStudio/Editor.h | |
parent | 488d0722bd561c0adcb8ceacbfeda7ff9584cf93 (diff) | |
download | serenity-dfc33cd4129759fae2d96cabfed830a3360208f5.zip |
HackStudio: Disable debug specific context entries
Context menu entries like evaluate expression and
move execution to line action should only be enabled
when a debug session is running. Otherwise they should
be disabled.
Diffstat (limited to 'Userland/DevTools/HackStudio/Editor.h')
-rw-r--r-- | Userland/DevTools/HackStudio/Editor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/DevTools/HackStudio/Editor.h b/Userland/DevTools/HackStudio/Editor.h index 7a98f67ac0..1f4d076e75 100644 --- a/Userland/DevTools/HackStudio/Editor.h +++ b/Userland/DevTools/HackStudio/Editor.h @@ -34,8 +34,10 @@ public: const Vector<size_t>& breakpoint_lines() const { return code_document().breakpoint_lines(); } Vector<size_t>& breakpoint_lines() { return code_document().breakpoint_lines(); } Optional<size_t> execution_position() const { return code_document().execution_position(); } + bool is_program_running() const { return execution_position().has_value(); } void set_execution_position(size_t line_number); void clear_execution_position(); + void set_debug_mode(bool); const CodeDocument& code_document() const; CodeDocument& code_document(); |