[webkit-dev] Debugging inspector injected scripts

Vivek Galatage vivekgalatage at gmail.com
Thu Mar 29 15:35:58 PDT 2012


Hi Pavel,

I have one question regarding the webkit trunk and these inspector related
changes.

So as per the link, I downloaded the chromium continuous build archive and
then followed the instructions to setup the frontend code for debugging.

Can I achieve the same thing with webkit trunk build instead of downloading
the chromium archive? As I would like to make changes in the inspector
backend (.cpp changes) so how can I proceed with this? So do I need to
build the webkit trunk for chromium port to get this working?

Thank you,
Vivek

On Fri, Mar 30, 2012 at 3:50 AM, Vivek Galatage <vivekgalatage at gmail.com>wrote:

> Thank you Pavel and Konrad for your help.
>
> I followed the below link and was able to achieve the debugging the
> inspector script.
>
> Thank you,
> Vivek
>
>
> On Thu, Mar 29, 2012 at 7:12 PM, Pavel Feldman <pfeldman at chromium.org>wrote:
>
>> See http://code.google.com/chrome/devtools/docs/contributing.html for
>> more info.
>>
>> Pavel
>>
>> On Thu, Mar 29, 2012 at 4:51 PM, Konrad Piascik <kpiascik at rim.com> wrote:
>> > Ok, well I was only able to do this on chrome. I have heard of issues
>> with
>> > Qt and debugging the inspector. The possible reason for your inability
>> to
>> > debug may be their sub event loop. Can any Qt developers comment?
>> > Konrad
>> > Sent from my BlackBerry on the Rogers Wireless Network
>> >
>> >
>> > From: Vivek Galatage [mailto:vivekgalatage at gmail.com]
>> > Sent: Thursday, March 29, 2012 08:32 AM
>> > To: Konrad Piascik
>> > Cc: webkit-dev at lists.webkit.org <webkit-dev at lists.webkit.org>
>> > Subject: Re: [webkit-dev] Debugging inspector injected scripts
>> >
>> > Hi Konrad,
>> >
>> > Thank you for your reply.
>> >
>> > Yes as you pointed out, I have tried this but was unable to do any live
>> > debugging of the javascript from inspector( such as ResourcesPanel.js
>> etc ).
>> >
>> > I am able to inspect the inspector but debugging the script is what I am
>> > looking forward to..
>> >
>> > I am working on webkit trunk revision 112378 on Qt port on ubuntu 11.10
>> as
>> > well as on Windows port.
>> >
>> > Thank you,
>> > Vivek
>> >
>> >
>> > On Thu, Mar 29, 2012 at 5:40 PM, Konrad Piascik <kpiascik at rim.com>
>> wrote:
>> >>
>> >> Hi Vivek,
>> >>
>> >> You can use the inspector to inspect itself. I've done this on chrome
>> many
>> >> times using the keyboard shortcut ctrl+shift+c (win & linux) or
>> >> command+shift+c (mac). In order for the keyboard shortcut to work you
>> need
>> >> to have the inspector undocked and the focus of the inspector be on the
>> >> panel icons.
>> >>
>> >> Hope this helps you achieve what you're looking to do.
>> >> Konrad
>> >> Sent from my BlackBerry on the Rogers Wireless Network
>> >>
>> >> From: Vivek Galatage [mailto:vivekgalatage at gmail.com]
>> >> Sent: Thursday, March 29, 2012 07:23 AM
>> >> To: webkit-dev at lists.webkit.org <webkit-dev at lists.webkit.org>
>> >> Subject: [webkit-dev] Debugging inspector injected scripts
>> >>
>> >> Hello webkit-dev,
>> >>
>> >> I would like to debug the various scripts those are injected by
>> inspector
>> >> component.
>> >>
>> >> Lets say I load a page from xyz.com which has some script named
>> xyz.js.. I
>> >> am able to put breakpoints in this xyz.js and do the normal debugging.
>> >>
>> >> But what I am interested in is debugging the inspector injected scripts
>> >> such as ResorucePanel.js etc by putting breakpoints. But whenever I
>> try to
>> >> do this, the inspector becomes non-responsive and I have to come out
>> of the
>> >> debug session by closing the browser. This I am experimenting on
>> Windows
>> >> port.
>> >>
>> >> So am I doing something wrong or is there any other method to achieve
>> >> this? Any help?
>> >>
>> >> Thank you,
>> >> Vivek
>> >> ---------------------------------------------------------------------
>> >> This transmission (including any attachments) may contain confidential
>> >> information, privileged material (including material protected by the
>> >> solicitor-client or other applicable privileges), or constitute
>> non-public
>> >> information. Any use of this information by anyone other than the
>> intended
>> >> recipient is prohibited. If you have received this transmission in
>> error,
>> >> please immediately reply to the sender and delete this information
>> from your
>> >> system. Use, dissemination, distribution, or reproduction of this
>> >> transmission by unintended recipients is not authorized and may be
>> unlawful.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > This transmission (including any attachments) may contain confidential
>> > information, privileged material (including material protected by the
>> > solicitor-client or other applicable privileges), or constitute
>> non-public
>> > information. Any use of this information by anyone other than the
>> intended
>> > recipient is prohibited. If you have received this transmission in
>> error,
>> > please immediately reply to the sender and delete this information from
>> your
>> > system. Use, dissemination, distribution, or reproduction of this
>> > transmission by unintended recipients is not authorized and may be
>> unlawful.
>> >
>> > _______________________________________________
>> > webkit-dev mailing list
>> > webkit-dev at lists.webkit.org
>> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120330/4631d9c3/attachment.html>


More information about the webkit-dev mailing list