WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
19157
Inspector should support console.trace
https://bugs.webkit.org/show_bug.cgi?id=19157
Summary
Inspector should support console.trace
Adam Roben (:aroben)
Reported
2008-05-20 16:16:08 PDT
The Inspector should support console.trace for Firebug parity.
Attachments
Screenshot
(124.10 KB, image/png)
2008-09-25 23:46 PDT
,
Keishi Hattori
no flags
Details
patch
(8.58 KB, patch)
2008-09-26 00:02 PDT
,
Keishi Hattori
no flags
Details
Formatted Diff
Diff
patch
(8.59 KB, patch)
2008-09-26 02:19 PDT
,
Keishi Hattori
kmccullough
: review-
Details
Formatted Diff
Diff
fixed patch
(8.54 KB, patch)
2008-09-26 17:07 PDT
,
Keishi Hattori
timothy
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2008-05-20 16:23:07 PDT
<
rdar://problem/5950861
>
Keishi Hattori
Comment 2
2008-08-15 01:04:37 PDT
I read CallStackSidebarPane.js but it looks like you can't get the CallFrame unless the debugger is enabled and paused.
>JavaScriptCallFrame* JavaScriptDebugServer::currentCallFrame() >{ > if (!m_paused) > return 0; > return m_currentCallFrame.get(); >}
My initial thought was I could do it using arguments.callee.caller but I think ArgList doesn't have the callee info.
Keishi Hattori
Comment 3
2008-09-25 23:46:40 PDT
Created
attachment 23840
[details]
Screenshot
Keishi Hattori
Comment 4
2008-09-26 00:02:38 PDT
Created
attachment 23841
[details]
patch I'm not sure if it's ok but I called Machine::retrieveCaller recursively to get a stack trace. Seems to be working.
Eric Seidel (no email)
Comment 5
2008-09-26 01:37:55 PDT
Comment on
attachment 23841
[details]
patch Why does trace() need to be custom? [Custom] void trace(); because it passes along the exec state?
Keishi Hattori
Comment 6
2008-09-26 02:19:50 PDT
Created
attachment 23843
[details]
patch Just replaced a tab.
Keishi Hattori
Comment 7
2008-09-26 02:21:47 PDT
That was my thinking when I did that. It doesn't compile when I don't do that. (In reply to
comment #5
)
> (From update of
attachment 23841
[details]
[edit]) > Why does trace() need to be custom? [Custom] void trace(); because it passes > along the exec state? >
Kevin McCullough
Comment 8
2008-09-26 14:36:35 PDT
Comment on
attachment 23843
[details]
patch JSConsole::trace doesn't use the "arguments" argument. Either remove the name or the argument altogether. In Console::trace use this->page() instead of checking the m_frame, we made a helper to do this easier. Also please file a bug that says we should include and name (program) and (eval) nodes. Also please edit 19229 to also give better names than (anonymous function) when possible.
Keishi Hattori
Comment 9
2008-09-26 17:07:55 PDT
Created
attachment 23862
[details]
fixed patch I couldn't remove the argument so I just removed the name.
Keishi Hattori
Comment 10
2008-09-26 17:11:45 PDT
I file a bug
https://bugs.webkit.org/show_bug.cgi?id=21157
(In reply to
comment #8
)
> Also please file a bug that says we should include and name (program) and > (eval) nodes.
Timothy Hatcher
Comment 11
2008-09-27 15:18:58 PDT
Landed in
r37012
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug