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,关闭属性对话框.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值