It creates a new process because you're navigating to a new domain. cnn.com and the New Tab Page are in different domains, and thus use different render processes. Annoying to debug, yes, but there you go. You'll just need to have a couple terminal gdb windows open at a time to bounce between processes.
I asked about this before and there doesn't seem to be much motivation to special case this logic to re-use the process. On the surface, certainly creating a new process is heavy-weight and appears like it should be avoided at all costs, but on today's hardware/OS's, it's barely noticed in the real world application of web surfing. If someone can provide hard numbers about what it does to page load times, we might look into it, but it's pretty low on the priority list right now, especially without any data. On Tue, Jul 28, 2009 at 10:41 PM, n179911<[email protected]> wrote: > > On Sun, Jul 26, 2009 at 3:52 PM, Jeremy Moskovich<[email protected]> wrote: >> Command line gdb is one way to go... >> >> I always use the XCode IDE gdb integration, as documented on the wiki. >> While trying to attach to the Chrome process directly from the IDE can get >> funky, the method documented on the wiki always works for me. >> >> XCode attaches itself to a running renderer which is paused [by calling >> pause() ] so you need to click continue in the IDE to get it to keep running >> and render a webpage. >> >> It's possible that the broken pipe you're seeing is the result of killing >> the renderer from the debugger. >> > > Thank you for the help. > > I did what you suggest. And I attached gdb to 2516 via command line. > Chromium does start and I see the 'New tab page'. Like this: > $ ~/chromium/src/xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium > --renderer-stp-dialog > > [2516:2055:3122095122007:WARNING:/Users/n179911/chromium/src/chrome/renderer/renderer_main.cc(65)] > Renderer (2516) paused waiting for debugger to attach @ pid > > > Then I go to the URL text box of chromium and type in 'http://www.cnn.com' > > But what I get is I see this but with a new pid (2220). > > [2516:2055:3122095122007:WARNING:/Users/n179911/chromium/src/chrome/renderer/renderer_main.cc(65)] > Renderer (2220) paused waiting for debugger to attach @ pid > > But question is why chromium starts a new Renderer process when I just > trying to load my first URL (http://www.cnn.com). Why it does not > re-used 2516 before? > > Thanks in advance. > > > >> Best regards, >> Jeremy >> >> On Sun, Jul 26, 2009 at 9:23 PM, n179911 <[email protected]> wrote: >>> >>> On Thu, Jul 16, 2009 at 12:46 AM, Jeremy Moskovich<[email protected]> >>> wrote: >>> > You can find instructions here: >>> > http://dev.chromium.org/developers/debugging-on-os-x >>> > Ultimately, we should really combine all the platform debugging articles >>> > into one page :| >>> > Best regards, >>> > Jeremy >>> >>> Thanks. I tried it. I saw this in the shell: >>> >>> >>> [460:2055:4872081828141:WARNING:/Users/n179911/chromium/src/chrome/renderer/renderer_main.cc(65)] >>> Renderer (460) paused waiting for debugger to attach @ pid >>> >>> And then I got XCode and Attached to '460'. >>> But i see this in my shell, and chromium never get launched. >>> >>> >>> [460:11783:4914670085769:ERROR:/Users/n179911/chromium/src/ipc/ipc_channel_posix.cc(649)] >>> pipe error on 3: Broken pipe >>> >>> Thank you for any help. >>> >>> >>> > >>> > On Thu, Jul 16, 2009 at 9:29 AM, hap497 <[email protected]> wrote: >>> >> >>> >> Hi, >>> >> >>> >> chromium.org has this >>> >> http://dev.chromium.org/developers/how-tos/debugging >>> >> for debugging renderer process on Windows. My question is how can I >>> >> do the same in XCode on MacOS X? >>> >> >>> >> I go to Run->Attach To Process, all the menu item entries are >>> >> disabled. >>> >> >>> >> Thank you for any tip. >>> >> >>> >> >>> >> >>> > >>> > >>> > >> > >>> > >> >> > > > > -- Mike Pinkerton Mac Weenie [email protected] --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
