Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 104169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:14:21+00:00 2026-05-11T01:14:21+00:00

Using Xcode 3.1 on OSX 10.5; is it possible to attach (the debugger) to

  • 0

Using Xcode 3.1 on OSX 10.5; is it possible to attach (the debugger) to a running remote process?

I know that it’s possible to start and debug a remote process (as explained here), but it would be great if I could find a way to attach to an already running remote process…

edit to add: Thanks. I’ve submitted a bug report to Apple. Will update this question if/when I hear back from them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:14:22+00:00Added an answer on May 11, 2026 at 1:14 am

    There is no nice gui for it in XCode but you can do it this way:

    1. start a second instance of the program from XCode with remote debugging,
    2. use the GDB attach command from the console

    Step by step instructions:

    1. Follow Apple’s instructions to set up remote debuging:

    2. Find out the process-id of the running instance of your program on the remote box:

      ssh ‘remotemachine’ ‘ps -x -w -w’ | grep ‘AppName’

      (you can also use ARD and ActivityMonitor)

    3. Put a breakpoint to your app main, and start a second instance from the Debugger (on the remote box)

    4. In the GDB console (Run/Console menu) enter:

      attach process-id

    5. Now you have you XCode attached to the running process. You can now use the graphical debugger.

    (In early XCode, there was no GUI for attaching to local processes, so this trick/hack was the solution…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 97k
  • Answers 97k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Well, since it all runs over IP, one option would… May 11, 2026 at 7:23 pm
  • Editorial Team
    Editorial Team added an answer I found that the answer is just to do this… May 11, 2026 at 7:23 pm
  • Editorial Team
    Editorial Team added an answer To get the description data, you unfortunately have to use… May 11, 2026 at 7:23 pm

Related Questions

I want to write a small program that should print something like testing CPU...
I'm using xcode in C++. I'm trying to debug my project, but at random
On my Mac OS X 10.5 (Leopard) machine, I have installed Git 1.6.0.2 using
I'm trying use the modulo operator (%) on long longs, and it seems to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.