Update Debugging on Mac OS X instructions for Safari 5.1/WebKit 2
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jan 2012 20:03:45 +0000 (20:03 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jan 2012 20:03:45 +0000 (20:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=67102

Reviewed by Eric Seidel.

Add instructions for debugging UIProcess and WebProcess using Xcode 4.

* building/active-scheme-xcode4.png: Added.
* building/build-settings-tab-xcode4.png: Added.
* building/build-window.png: Removed.
* building/custom-executable-xcode4.png: Added.
* building/custom-executable.png: Removed.
* building/debug-mac-uiprocess.html: Added.
* building/debug.html:
* building/debug.png: Removed.
* building/info-tab.png: Removed.
* building/run-xcode4.png: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105432 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/webkit.org/ChangeLog
Websites/webkit.org/building/active-scheme-xcode4.png [new file with mode: 0644]
Websites/webkit.org/building/build-settings-tab-xcode4.png [new file with mode: 0644]
Websites/webkit.org/building/build-window.png [deleted file]
Websites/webkit.org/building/custom-executable-xcode4.png [new file with mode: 0644]
Websites/webkit.org/building/custom-executable.png [deleted file]
Websites/webkit.org/building/debug-mac-uiprocess.html [new file with mode: 0644]
Websites/webkit.org/building/debug.html
Websites/webkit.org/building/debug.png [deleted file]
Websites/webkit.org/building/info-tab.png [deleted file]
Websites/webkit.org/building/run-xcode4.png [new file with mode: 0644]

index efc145a..fea324b 100644 (file)
@@ -1,3 +1,23 @@
+2012-01-19  Daniel Bates  <dbates@webkit.org>
+
+        Update Debugging on Mac OS X instructions for Safari 5.1/WebKit 2
+        https://bugs.webkit.org/show_bug.cgi?id=67102
+
+        Reviewed by Eric Seidel.
+
+        Add instructions for debugging UIProcess and WebProcess using Xcode 4.
+
+        * building/active-scheme-xcode4.png: Added.
+        * building/build-settings-tab-xcode4.png: Added.
+        * building/build-window.png: Removed.
+        * building/custom-executable-xcode4.png: Added.
+        * building/custom-executable.png: Removed.
+        * building/debug-mac-uiprocess.html: Added.
+        * building/debug.html:
+        * building/debug.png: Removed.
+        * building/info-tab.png: Removed.
+        * building/run-xcode4.png: Added.
+
 2012-01-11  Antti Koivisto  <antti@apple.com>
 
         Remove S60 reference from webkit.org
diff --git a/Websites/webkit.org/building/active-scheme-xcode4.png b/Websites/webkit.org/building/active-scheme-xcode4.png
new file mode 100644 (file)
index 0000000..67fbebb
Binary files /dev/null and b/Websites/webkit.org/building/active-scheme-xcode4.png differ
diff --git a/Websites/webkit.org/building/build-settings-tab-xcode4.png b/Websites/webkit.org/building/build-settings-tab-xcode4.png
new file mode 100644 (file)
index 0000000..49efaeb
Binary files /dev/null and b/Websites/webkit.org/building/build-settings-tab-xcode4.png differ
diff --git a/Websites/webkit.org/building/build-window.png b/Websites/webkit.org/building/build-window.png
deleted file mode 100644 (file)
index 0d5d116..0000000
Binary files a/Websites/webkit.org/building/build-window.png and /dev/null differ
diff --git a/Websites/webkit.org/building/custom-executable-xcode4.png b/Websites/webkit.org/building/custom-executable-xcode4.png
new file mode 100644 (file)
index 0000000..bf43257
Binary files /dev/null and b/Websites/webkit.org/building/custom-executable-xcode4.png differ
diff --git a/Websites/webkit.org/building/custom-executable.png b/Websites/webkit.org/building/custom-executable.png
deleted file mode 100644 (file)
index 35aebdf..0000000
Binary files a/Websites/webkit.org/building/custom-executable.png and /dev/null differ
diff --git a/Websites/webkit.org/building/debug-mac-uiprocess.html b/Websites/webkit.org/building/debug-mac-uiprocess.html
new file mode 100644 (file)
index 0000000..07e19c0
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+    $title = "Debugging UIProcess on Mac OS X";
+    include("../header.inc");
+?>
+
+<div class="mac-instructions">
+<h2>Debugging UIProcess on Mac OS X</h2>
+<ol>
+<li><p>Open the WebKit2 Xcode project</p></li>
+</ol>
+<p>Note, the Xcode project file depends on the build location specified in the project itself. In Xcode 4, choose Xcode > Preferences > Locations, click Locations, click the Advanced button, and ensure that the build location is Locations Specified by Targets.</p>
+<ol start="2">
+<li><p>Set the project's build products location</p>
+<p>To find the WebKit you built, Xcode needs to know the build products location that <code>build-webkit</code> used. You can set the build products location in the project's build settings editor.</p>
+<img src="build-settings-tab-xcode4.png" alt="Build products location">
+</li>
+<li><p>Set the project's active scheme</p>
+<p>Xcode also needs to know the build configuration you used. You can set the active scheme from the workspace window.</p>
+<img src="active-scheme-xcode4.png" alt="Scheme pop-up menu">
+</li>
+<li><p>Add Safari to the project's active scheme</p>
+<p>Choose Edit Scheme from scheme pop-up menu. In the leftmost pane of the window, choose Run. In the Info pane, choose Other from the Executable pop-up menu. Then select /Applications/Safari.app.</p>
+<img src="custom-executable-xcode4.png" alt="Edit Scheme sheet">
+</li>
+<li><p>Launch the debugger</p>
+<p>In the workspace window, click the Run button.</p>
+<img src="run-xcode4.png" alt="Run button">
+</li>
+<li><p>See the <a href="http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Debugging/Debugging.html#//apple_ref/doc/uid/TP40010215-CH3-SW1">Xcode Debugging Guide</a> for more information on using Xcode to debug software on Mac OS X.</p>
+</li>
+</ol>
+</div>
+
+<?php
+    include("../footer.inc");
+?>
index 15a8687..8c207e8 100644 (file)
@@ -5,35 +5,24 @@
 
 <div class="mac-instructions">
 <h2>Debugging on Mac OS X</h2>
+<p>Safari 5.1 shipped
+<p>Each WebKit component -- JavaScriptCore, WebCore, and WebKit2 -- contains its own Xcode project that depends on the build location specified in the project itself. In Xcode 4, choose Xcode > Preferences > Locations, click Locations, click the Advanced button, and ensure that the build location is Locations Specified by Targets.</p>
+<h3>Debugging UIProcess</h3>
+<p>Follow the instructions on the <a href="debug-mac-uiprocess.html">debugging UIProcess</a> page.</p>
+<h3>Debugging WebProcess</h3>
 <ol>
-<li><p>Open a project</p>
-<p>Each WebKit component -- JavaScriptCore, WebCore, and WebKit -- contains its own Xcode project. Open the project belonging to the component you want to debug.</p>
-</li>
-<li><p>Set the project's build products location</p>
-<p>To find the WebKit you built, Xcode needs to know the build products location that <code>build-webkit</code> used. You can set the build products location from the project's Info window.</p>
-<img src="info-tab.png">
-</li>
-<li><p>Set the project's active build configuration</p>
-<p>Xcode also needs to know the build configuration you used. You can set the active build configuration from the project's Build window.</p>
-<img src="build-window.png">
-</li>
-<li><p>Add a custom executable to the project</p>
-<p>Choose any WebKit application you want to use for debugging. To use Safari, select /Applications/Safari.app.</p>
-<img src="custom-executable.png">
-</li>
-<li><p>Set the project's active executable</p>
-<p>You can set the active executable from the project's Build window. Choose the executable you just added.</p>
+<li><p>Launch Safari</p>
+<p>Follow the instructions on <a href="run.html">Running WebKit</a> to launch Safari from the command line with the WebKit version you built. Alternatively you can <a href="debug-mac-uiprocess.html">use the WebKit2 Xcode project to launch Safari</a>.</p>
 </li>
-<li><p>Close and re-open the project</p>
-<p>This will force Xcode to discover generated source files, which output to your build products location, allowing you to set breakpoints in them.</p>
+<li><p>Open a project</p>
+<p>Open the Xcode project belonging to the component -- WebCore or JavaScriptCore -- you want to debug.</p>
 </li>
-<li><p>Launch the debugger</p>
-<p>In the Debugger window, click the "Debug" button.</p>
-<img src="debug.png">
+</ol>
+<li><p>Attach to WebProcess</p>
+<p>Choose Product > Attach to Process > WebProcess.</p>
 </li>
-<li><p>See the <a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeDebugging/index.html">Xcode Debugging Guide</a> for more information on using Xcode to debug software on Mac OS X.</p>
+<li><p>See the <a href="http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Debugging/Debugging.html#//apple_ref/doc/uid/TP40010215-CH3-SW1">Xcode Debugging Guide</a> for more information on using Xcode to debug software on Mac OS X.</p>
 </li>
-</ol>
 </div>
 <div class="windows-instructions">
 <h2>Debugging on Windows</h2>
diff --git a/Websites/webkit.org/building/debug.png b/Websites/webkit.org/building/debug.png
deleted file mode 100644 (file)
index 2a06efd..0000000
Binary files a/Websites/webkit.org/building/debug.png and /dev/null differ
diff --git a/Websites/webkit.org/building/info-tab.png b/Websites/webkit.org/building/info-tab.png
deleted file mode 100644 (file)
index d89ad1c..0000000
Binary files a/Websites/webkit.org/building/info-tab.png and /dev/null differ
diff --git a/Websites/webkit.org/building/run-xcode4.png b/Websites/webkit.org/building/run-xcode4.png
new file mode 100644 (file)
index 0000000..476c998
Binary files /dev/null and b/Websites/webkit.org/building/run-xcode4.png differ