Index: src/debug.h |
=================================================================== |
--- src/debug.h (revision 1851) |
+++ src/debug.h (working copy) |
@@ -687,6 +687,9 @@ |
// Check whether there are any JavaScript frames on the stack. |
inline bool HasJavaScriptFrames() { return has_js_frames_; } |
+ // Get the active context from before entering the debugger. |
+ inline Handle<Context> GetContext() { return save_.context(); } |
+ |
private: |
EnterDebugger* prev_; // Previous debugger entry if entered recursively. |
JavaScriptFrameIterator it_; |