Re: [webkit-dev] Debugging With Xcode
On Apr 24, 2012, at 12:18 AM, Eric Seidel wrote: I have updated to the latest Xcode. My current hack for being able to build from the command line as well as within Xcode is that I've manually added symlinks from Source/WebCore/build - ../../WebKitBuild (since it no longer seems possible to set a global build directory). It seems to be working mostly (it likes to re-link, but is at least not re-compiling when I switch between build-webkit and Xcode). I'm told that the Xcode4 way to share build directories is with Workspaces? [1] Has anyone set up a workspace file for WebKit that I could use? I don't see one in the repository. There’s one attached to http://webkit.org/b/85739 Building and debugging WebKit in the Xcode IDE requires a lot of setup Thanks. -eric 1. http://developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Workspace.html#//apple_ref/doc/uid/TP40009328-CH7-SW1 On Mon, Apr 23, 2012 at 7:30 PM, Ryosuke Niwa rniwa at webkit.org wrote: Has anyone successfully setup DRT as a debug target (a.k.a. Scheme) on XCode 4 (so that we don't have to manually attach dbg)? Yes. The All Tools scheme in the aforementioned patch has DumpRenderTree as its Executable, and is configured such that you can specify LayoutTests-relative paths to tests as arguments. - Ryosuke On Mon, Apr 23, 2012 at 7:07 PM, Jarred Nicholls jarred at webkit.org wrote: On Apr 23, 2012, at 9:03 PM, Eric Seidel eric at webkit.org wrote: Does anyone still debug WebKit on Mac OS X with Xcode 4? 1. ?I don't know how to actually set up Xcode to point to WebKitBuild like it used to. http://www.webkit.org/building/debug.html Mentions a Legacy option which does not exist for me. Simon Fraser helped me set up WebKitBuild on one of my machines, but I don't really know how to repeat that process. 2. ?Xcode tries to Re-index WebCore, seemingly every time I open WebCore.xcodeproj. ?This is a hour+ process on my 12-core Mac Pro! The re-indexing takes a lot of processing power, and seems to render both my machine, and Xcode largely unusable. I understand that Xcode isn't really designed for projects as large as WebCore, but we've made it work in the past, and I'm curious if anyone is still making it work? If the Apple folks have any suggestions or updates to http://www.webkit.org/building/debug.html, they would be most appreciated. :) Thanks! -eric Xcode 4.2.1 Build version 4D502 ___ webkit-dev mailing list webkit-dev at lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev I usually create an empty project, add the source files I care about, and then attach to the appropriate renderer process - but also use WebCore.xcodeproj directly on occasion. ?I run the same version as you and once ran into an infinite indexing cycle, but after a swift kick from Activity Monitor, I haven't seen it again. ?Xcode works great as a gdb front end for me. ___ webkit-dev mailing list webkit-dev at lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Debugging With Xcode
I have updated to the latest Xcode. My current hack for being able to build from the command line as well as within Xcode is that I've manually added symlinks from Source/WebCore/build - ../../WebKitBuild (since it no longer seems possible to set a global build directory). It seems to be working mostly (it likes to re-link, but is at least not re-compiling when I switch between build-webkit and Xcode). I'm told that the Xcode4 way to share build directories is with Workspaces? [1] Has anyone set up a workspace file for WebKit that I could use? I don't see one in the repository. Thanks. -eric 1. http://developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Workspace.html#//apple_ref/doc/uid/TP40009328-CH7-SW1 On Mon, Apr 23, 2012 at 7:30 PM, Ryosuke Niwa rn...@webkit.org wrote: Has anyone successfully setup DRT as a debug target (a.k.a. Scheme) on XCode 4 (so that we don't have to manually attach dbg)? - Ryosuke On Mon, Apr 23, 2012 at 7:07 PM, Jarred Nicholls jar...@webkit.org wrote: On Apr 23, 2012, at 9:03 PM, Eric Seidel e...@webkit.org wrote: Does anyone still debug WebKit on Mac OS X with Xcode 4? 1. I don't know how to actually set up Xcode to point to WebKitBuild like it used to. http://www.webkit.org/building/debug.html Mentions a Legacy option which does not exist for me. Simon Fraser helped me set up WebKitBuild on one of my machines, but I don't really know how to repeat that process. 2. Xcode tries to Re-index WebCore, seemingly every time I open WebCore.xcodeproj. This is a hour+ process on my 12-core Mac Pro! The re-indexing takes a lot of processing power, and seems to render both my machine, and Xcode largely unusable. I understand that Xcode isn't really designed for projects as large as WebCore, but we've made it work in the past, and I'm curious if anyone is still making it work? If the Apple folks have any suggestions or updates to http://www.webkit.org/building/debug.html, they would be most appreciated. :) Thanks! -eric Xcode 4.2.1 Build version 4D502 ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev I usually create an empty project, add the source files I care about, and then attach to the appropriate renderer process - but also use WebCore.xcodeproj directly on occasion. I run the same version as you and once ran into an infinite indexing cycle, but after a swift kick from Activity Monitor, I haven't seen it again. Xcode works great as a gdb front end for me. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Debugging With Xcode
Does anyone still debug WebKit on Mac OS X with Xcode 4? 1. I don't know how to actually set up Xcode to point to WebKitBuild like it used to. http://www.webkit.org/building/debug.html Mentions a Legacy option which does not exist for me. Simon Fraser helped me set up WebKitBuild on one of my machines, but I don't really know how to repeat that process. 2. Xcode tries to Re-index WebCore, seemingly every time I open WebCore.xcodeproj. This is a hour+ process on my 12-core Mac Pro! The re-indexing takes a lot of processing power, and seems to render both my machine, and Xcode largely unusable. I understand that Xcode isn't really designed for projects as large as WebCore, but we've made it work in the past, and I'm curious if anyone is still making it work? If the Apple folks have any suggestions or updates to http://www.webkit.org/building/debug.html, they would be most appreciated. :) Thanks! -eric Xcode 4.2.1 Build version 4D502 ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Debugging With Xcode
On 2012-04-23, at 18:02, Eric Seidel e...@webkit.org wrote: Does anyone still debug WebKit on Mac OS X with Xcode 4? 1. I don't know how to actually set up Xcode to point to WebKitBuild like it used to. http://www.webkit.org/building/debug.html Mentions a Legacy option which does not exist for me. This page was updated recently to reflect the terminology used in the current version of Xcode. The diff may provide the information you need to get this working in earlier versions of Xcode. 2. Xcode tries to Re-index WebCore, seemingly every time I open WebCore.xcodeproj. This is a hour+ process on my 12-core Mac Pro! The re-indexing takes a lot of processing power, and seems to render both my machine, and Xcode largely unusable. That's interesting. If you're seeing that with the latest released version of Xcode then I'd strongly suggest filing a bug report at http://bugreport.apple.com/ so that the Xcode folks can address it. - Mark ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Debugging With Xcode
Hi, On Mon, Apr 23, 2012 at 10:07 PM, Mark Rowe mr...@apple.com wrote: On 2012-04-23, at 18:02, Eric Seidel e...@webkit.org wrote: Does anyone still debug WebKit on Mac OS X with Xcode 4? 1. I don't know how to actually set up Xcode to point to WebKitBuild like it used to. http://www.webkit.org/building/debug.html Mentions a Legacy option which does not exist for me. I also didn't manage to make it work for me also. I managed to get Safari launching (after a long wait) but when running debug it doesn't stop on the breakpoints. This page was updated recently to reflect the terminology used in the current version of Xcode. The diff may provide the information you need to get this working in earlier versions of Xcode. 2. Xcode tries to Re-index WebCore, seemingly every time I open WebCore.xcodeproj. This is a hour+ process on my 12-core Mac Pro! The re-indexing takes a lot of processing power, and seems to render both my machine, and Xcode largely unusable. That's interesting. If you're seeing that with the latest released version of Xcode then I'd strongly suggest filing a bug report at http://bugreport.apple.com/ so that the Xcode folks can address it. I also noticed the same, every git pull start to re-index the entire project and my old MacBook Pro almost die away after that. I use the latest Mac App store version. Additional question : is it possible to actually build WebCore or any subproject (JSC, ...) from XCode so you could get a fancy ui for compilation issues (maybe provided you already ran once build-webkit) ? - Mark ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev -- Alexis Menard (darktears) Software Engineer openBossa @ INdT - Instituto Nokia de Tecnologia ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Debugging With Xcode
On Mon, 23 Apr 2012 18:02:51 -0700, Eric Seidel e...@webkit.org wrote: Does anyone still debug WebKit on Mac OS X with Xcode 4? 1. I don't know how to actually set up Xcode to point to WebKitBuild like it used to. http://www.webkit.org/building/debug.html Mentions a Legacy option which does not exist for me. As Mark Rowe pointed out in his reply, I recently updated these instructions with respect to changes in Xcode 4.3.2. I've updated the build location instructions on the web site to mention Xcode 4.3.2 instead of Xcode 4 and landed this change in changeset 114978, http://trac.webkit.org/changeset/114978. Also, I've updated http://www.webkit.org/building/tools.html to mention the need to either run xcode-select or set the environment variable DEVELOPER_DIR to point to the developer tools directory before using the Xcode command line tools. This change was landed in changeset 114982, http://trac.webkit.org/changeset/114982. Dan ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Debugging With Xcode
On Apr 23, 2012, at 9:03 PM, Eric Seidel e...@webkit.org wrote: Does anyone still debug WebKit on Mac OS X with Xcode 4? 1. I don't know how to actually set up Xcode to point to WebKitBuild like it used to. http://www.webkit.org/building/debug.html Mentions a Legacy option which does not exist for me. Simon Fraser helped me set up WebKitBuild on one of my machines, but I don't really know how to repeat that process. 2. Xcode tries to Re-index WebCore, seemingly every time I open WebCore.xcodeproj. This is a hour+ process on my 12-core Mac Pro! The re-indexing takes a lot of processing power, and seems to render both my machine, and Xcode largely unusable. I understand that Xcode isn't really designed for projects as large as WebCore, but we've made it work in the past, and I'm curious if anyone is still making it work? If the Apple folks have any suggestions or updates to http://www.webkit.org/building/debug.html, they would be most appreciated. :) Thanks! -eric Xcode 4.2.1 Build version 4D502 ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev I usually create an empty project, add the source files I care about, and then attach to the appropriate renderer process - but also use WebCore.xcodeproj directly on occasion. I run the same version as you and once ran into an infinite indexing cycle, but after a swift kick from Activity Monitor, I haven't seen it again. Xcode works great as a gdb front end for me. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Debugging With Xcode
Has anyone successfully setup DRT as a debug target (a.k.a. Scheme) on XCode 4 (so that we don't have to manually attach dbg)? - Ryosuke On Mon, Apr 23, 2012 at 7:07 PM, Jarred Nicholls jar...@webkit.org wrote: On Apr 23, 2012, at 9:03 PM, Eric Seidel e...@webkit.org wrote: Does anyone still debug WebKit on Mac OS X with Xcode 4? 1. I don't know how to actually set up Xcode to point to WebKitBuild like it used to. http://www.webkit.org/building/debug.html Mentions a Legacy option which does not exist for me. Simon Fraser helped me set up WebKitBuild on one of my machines, but I don't really know how to repeat that process. 2. Xcode tries to Re-index WebCore, seemingly every time I open WebCore.xcodeproj. This is a hour+ process on my 12-core Mac Pro! The re-indexing takes a lot of processing power, and seems to render both my machine, and Xcode largely unusable. I understand that Xcode isn't really designed for projects as large as WebCore, but we've made it work in the past, and I'm curious if anyone is still making it work? If the Apple folks have any suggestions or updates to http://www.webkit.org/building/debug.html, they would be most appreciated. :) Thanks! -eric Xcode 4.2.1 Build version 4D502 ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev I usually create an empty project, add the source files I care about, and then attach to the appropriate renderer process - but also use WebCore.xcodeproj directly on occasion. I run the same version as you and once ran into an infinite indexing cycle, but after a swift kick from Activity Monitor, I haven't seen it again. Xcode works great as a gdb front end for me. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev