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

  • SEARCH
  • Home
  • 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 8869757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:33:24+00:00 2026-06-14T17:33:24+00:00

Im debugging a plugin using XCode 4.5 using the Info > Launch > Wait

  • 0

Im debugging a plugin using XCode 4.5 using the Info > Launch > Wait for ??? to launch and debugging work great.

However everytime I hit the stop button or push back the play button the application that I attach my plugin to get killed (Killed: 9). If I attach to a process isn’t it not logic that the play or stop button would detach me from that process?

Is there a way that I can change this behavior in Xcode instead of typing everytime on the lldb console >> process detach for it to continue?

What Im thinking is to add some code in my main app (the one that I attach XCode to) to add a piece of code to disconnect the debugger is it possible?

[ EDIT ]

Found this code that determine if the debugger is attached:

bool debugger_attached( void )
{
    int mib[ 4 ];
    struct kinfo_proc info;
    size_t size;

    info.kp_proc.p_flag = 0;

    mib[0] = CTL_KERN;
    mib[1] = KERN_PROC;
    mib[2] = KERN_PROC_PID;
    mib[3] = getpid();

    size = sizeof( info );

    sysctl( mib, sizeof( mib ) / sizeof( *mib ), &info, &size, NULL, 0 );

    return ( ( info.kp_proc.p_flag & P_TRACED ) != 0 );
}

Now how to detach the debugger from the current process?

  • 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. Editorial Team
    Editorial Team
    2026-06-14T17:33:25+00:00Added an answer on June 14, 2026 at 5:33 pm

    I think it’s already clear from the follow-up comments that this behavior — Xcode not having a simple GUI gesture to detach from a process — is how things work today. There’s at least one use-case where this is the correct behavior — when doing iOS Simulator process debugging on your Mac, the Simulator app is not launched by Xcode/lldb directly – it attaches to an already-launched process. In that case, when you press the Stop button in Xcode, you expect the simulated app to stop running. This is an implementation detail that users don’t know about/shouldn’t need to know about, but there is some logic to the behavior.

    For what it’s worth, you can make an alias in your ~/.lldbinit file like

    command alias det process detach
    

    and now in the debugger console you can type just det to detach. (or whatever alias you want to set up). It’s not as simple as hitting a button in the GUI but it’s better than process detach.

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

Sidebar

Related Questions

I'm using the cformsII form plugin for Wordpress. When debugging with firebug, I see
I'm using Eclipse 3.4.1 with Hp/UX plugin for remote debugging of C/C++. It works
Using the following textbook thread wait/notify example, is there a tool (Eclipse plugin?) that
I use NUnit plugin from ReSharper. I can't find any way of debugging a
I'm trying to use struts2-jquery grid plugin. When debugging my gridmodel is getting updated
When debugging Java code using Eclipse, for collection variables, I saw the modcount member.
I'm using Jorn Zaefferer's Autocomplete plugin on a couple of different pages. In both
I've been building parsers using a Maven Plugin (i.e. calling PEG.js from Java code)
I'm using the jquery cluetip plugin to display a detailed tooltip. I had the
I've been developing a plugin for jQuery jQueryLog to allow for debugging of chain

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.