mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibJS: Add VM::dump_backtrace()
This is just a simple helper that dumps the current VM call stack to the debug console. I find myself rewriting this function over and over, so let's just have it in the tree.
This commit is contained in:
parent
988dfa7f33
commit
d24f4462c7
2 changed files with 8 additions and 0 deletions
|
@ -71,6 +71,8 @@ public:
|
|||
void set_exception(Exception& exception) { m_exception = &exception; }
|
||||
void clear_exception() { m_exception = nullptr; }
|
||||
|
||||
void dump_backtrace() const;
|
||||
|
||||
class InterpreterExecutionScope {
|
||||
public:
|
||||
InterpreterExecutionScope(Interpreter&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue