mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
212e9fbe6c
Incomplete version of the Lua debugger. Some available features: * Break in next executed instruction * Step in, over, out * See & navigate stacktrace * See local variables Some missing features: * Breakpoints * Eval user expressions with local variables The UX needs some improvement yet.
34 lines
575 B
C++
34 lines
575 B
C++
// Aseprite
|
|
// Copyright (C) 2021 Igara Studio S.A.
|
|
//
|
|
// This program is distributed under the terms of
|
|
// the End-User License Agreement for Aseprite.
|
|
|
|
#ifndef APP_COMMANDS_DEBUGGER_H_INCLUDED
|
|
#define APP_COMMANDS_DEBUGGER_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include "app/commands/command.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace app {
|
|
|
|
class Debugger;
|
|
|
|
class DebuggerCommand : public Command {
|
|
public:
|
|
DebuggerCommand();
|
|
|
|
void closeDebugger(Context* ctx);
|
|
|
|
protected:
|
|
void onExecute(Context* context) override;
|
|
|
|
std::unique_ptr<Debugger> m_debugger;
|
|
};
|
|
|
|
} // namespace app
|
|
|
|
#endif
|