WebKit之调试

下面是我调试WebKit 看到的文章,翻译下,希望对大家有用!

在Windows上调试

1.打开WebKit/WebKit/win/WebKit.vcproj/WebKit.sln

你可以用Visual Studio 2005打开工程,也可以用Visual C++ Express 2005打开. 如果你在找.vsprops文件时发现了错误, 运行update-webkit,然后关闭,并且重新运行Cygwin 、Visual Studio和 Visual C++ Express.

2.将WebKit.vcproj工程作为解决方案的启动工程.

在解决方案浏览器中选择webkit工程,然后选择 “项目”>设置为启动工程.这将会让工程在解决方案浏览器中变成黑色显示.

3.设置WebKit.vcproj's 项目工程的调试属性.

选择WebKit项目选择,选择"工程">"属性",然后在"配置属性"下选择"调试",设置以下选项.

命令
$(PROGRAMFILES)\Safari\Safari.exe
环境
WEBKITNIGHTLY=$(OutDir)

然后单击ok,关闭属性对话框.

WebKit之调试_第1张图片

4. 启动调试

选择"调试">启动调试.

以下为翻译原文地址: http://www.webkit.org/building/debug.html

Debugging on Windows

  1. Open WebKit/WebKit/win/WebKit.vcproj/WebKit.sln

    You can open it in either Visual Studio 2005, or Visual C++ Express 2005. If you get errors about not being able to find .vsprops files, run update-webkit, then close and relaunch Cygwin and Visual Studio or Visual C++ Express.

  2. Set WebKit.vcproj as the solution's StartUp project

    Select the WebKit project in the Solution Explorer, then choose Project > Set as StartUp Project. This will cause the project to turn bold in the Solution Explorer.

  3. Set WebKit.vcproj's Debugging properties

    With the WebKit project selected, choose Project > Properties, then navigate to Configuration Properties > Debugging. Set the following options:

    Command
    $(PROGRAMFILES)\Safari\Safari.exe
    Environment
    WEBKITNIGHTLY=$(OutDir)

    Then click OK to close the properties dialog.

  4. Launch the debugger

    Choose Debug > Start Debugging.

你可能感兴趣的:(webkit)