• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to debug a CFPlugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug a CFPlugin


  • Subject: Re: How to debug a CFPlugin
  • From: Etienne Guérard <email@hidden>
  • Date: Wed, 10 Dec 2008 17:44:53 +0100

It seems that your custom executable doesn't want to be debugged.
Try to add a breakpoint on ptrace() and see if this is the case.
PT_DENY_ATTACH is 31.

EG

On Dec 10, 2008, at 5:23 PM, Jose R.C. Cruz wrote:

2008 Dec 10, 08:13 PST

Hello, folks!

I am having problems with debugging a CFPlugin through Xcode's source-level debugger. My plug-in was a BBEdit plug-in I wrote for an upcoming article. The procedure I found via Google is as follows.

a) Open the plugin project;
b) Build the plugin;
c) Make an alias of the plugin in your Tools folder;
d) Right click on the "Executables" node, and choose "Add->New Custom Executable"
e) Click the Choose button, and pick your BBEdit/TextWrangler application;
f) Switch to the "Debugging" panel, and make sure "Start executable after starting debugger" is enabled;
g) Set a breakpoint;
h) Build & Debug


Yet, when I follow these steps, Xcode displayed the following error on its console:

Program received signal: “SIGTRAP”.
Xcode: Introspection dylib not loaded because thread 1 has function: __dyld__dyld_start on stack


So, am I missing something? Is it even possible to use a source- level debugger on CFPlugins? My sample plug-in does work, as it displays the selected text onto a modal dialog. I am just unable to debug it -- short of using a lot of NSLog() statements.

I appreciate any help you can provide.

-----
J.C. Cruz
Freelance Writer
MacTech/REALbasic Developer/Python Magazine
anarakisware-at-gmail-dot-com




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

------------------------------------------------------------ This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither DxO Labs nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. DxO Labs et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, modifie ou falsifie.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to debug a CFPlugin
      • From: "Jose R.C. Cruz" <email@hidden>
References: 
 >How to debug a CFPlugin (From: "Jose R.C. Cruz" <email@hidden>)

  • Prev by Date: How to debug a CFPlugin
  • Next by Date: Static and Dynamic libraries for iPhone apps ?
  • Previous by thread: How to debug a CFPlugin
  • Next by thread: Re: How to debug a CFPlugin
  • Index(es):
    • Date
    • Thread