Index: Source/devtools/front_end/inspector.js |
diff --git a/Source/devtools/front_end/inspector.js b/Source/devtools/front_end/inspector.js |
index 93c556774f4eeafc9c3fc94385c001ed6f199f83..c8cac70aff6eb5e7fd22f45a11ff8f0c3bed749a 100644 |
--- a/Source/devtools/front_end/inspector.js |
+++ b/Source/devtools/front_end/inspector.js |
@@ -1017,6 +1017,26 @@ WebInspector.inspect = function(payload, hints) |
return; |
} |
+ if (object.type === "function") { |
+ function didGetDetails(error, response) |
+ { |
+ object.release(); |
+ |
+ if (error) { |
+ console.error(error); |
+ return; |
+ } |
+ |
+ var uiLocation = WebInspector.debuggerModel.rawLocationToUILocation(response.location); |
+ if (!uiLocation) |
+ return; |
+ |
+ WebInspector.showPanel("scripts").showUISourceCode(uiLocation.uiSourceCode, uiLocation.lineNumber, uiLocation.columnNumber); |
pfeldman
2013/08/28 15:46:15
showUILocation
|
+ } |
+ DebuggerAgent.getFunctionDetails(object.objectId, didGetDetails.bind(this)); |
+ return; |
+ } |
+ |
if (hints.databaseId) |
WebInspector.showPanel("resources").selectDatabase(WebInspector.databaseModel.databaseForId(hints.databaseId)); |
else if (hints.domStorageId) |