mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:17:45 +00:00
HackStudio: Show local variables in the debugger
We now have a Debug Information tab, which displays the variables in the current scope in a tree view.
This commit is contained in:
parent
09ac22b37f
commit
3dd0f755d0
6 changed files with 219 additions and 14 deletions
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "BreakpointCallback.h"
|
||||
#include <AK/Function.h>
|
||||
#include <AK/Vector.h>
|
||||
|
@ -37,7 +38,7 @@ class Debugger {
|
|||
public:
|
||||
static Debugger& the();
|
||||
static void initialize(
|
||||
Function<void(DebugInfo::SourcePosition)> on_stop_callback,
|
||||
Function<void(const PtraceRegisters&)> on_stop_callback,
|
||||
Function<void()> on_continue_callback,
|
||||
Function<void()> on_exit_callback);
|
||||
|
||||
|
@ -65,7 +66,7 @@ public:
|
|||
|
||||
private:
|
||||
explicit Debugger(
|
||||
Function<void(DebugInfo::SourcePosition)> on_stop_callback,
|
||||
Function<void(const PtraceRegisters&)> on_stop_callback,
|
||||
Function<void()> on_continue_callback,
|
||||
Function<void()> on_exit_callback);
|
||||
|
||||
|
@ -82,7 +83,7 @@ private:
|
|||
Vector<DebugInfo::SourcePosition> m_breakpoints;
|
||||
String m_executable_path;
|
||||
|
||||
Function<void(DebugInfo::SourcePosition)> m_on_stopped_callback;
|
||||
Function<void(const PtraceRegisters&)> m_on_stopped_callback;
|
||||
Function<void()> m_on_continue_callback;
|
||||
Function<void()> m_on_exit_callback;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue