You might try attaching gdb from the command-line. I've always had better results doing it that way than using xcode. Once you've started chromium with the --renderer-startup-dialog flag, you can attach by starting gdb in a terminal window and typing "attach 460" (or whatever the pid of the renderer is). Once gdb is attached to the renderer, you can set any breakpoints you like and then continue to run chromium (c is continue by default). Note that every time a new renderer is started, chromium will pause until you tell it to continue (usually by attaching a debugger).
-Paul Wicks On Sun, Jul 26, 2009 at 2: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. > >> > >> > >> > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
