Web Inspector: The front-end should provide the position in original source file when set a breakpoint
https://bugs.webkit.org/show_bug.cgi?id=93473
Patch by Peter Wang <peter.wang@torchmobile.com.cn> on 2012-10-07
Reviewed by Yury Semikhatsky.
Since frontend truncates the indent, the first statement in a line must match the breakpoint (line, 0).
With this patch JSC debugger can support both normal and "Pretty Print" mode.
No new test case. This patch can be verified with cases in "LayoutTests/inspector/debugger/".
* bindings/js/ScriptDebugServer.cpp:
(WebCore::ScriptDebugServer::ScriptDebugServer):
(WebCore::ScriptDebugServer::hasBreakpoint):
(WebCore::ScriptDebugServer::createCallFrameAndPauseIfNeeded):
(WebCore::ScriptDebugServer::pauseIfNeeded):
* bindings/js/ScriptDebugServer.h:
(ScriptDebugServer):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130615
268f45cc-cd09-0410-ab3c-
d52691b4dbfc