Re: Problems debugging in Xcode
Re: Problems debugging in Xcode
- Subject: Re: Problems debugging in Xcode
- From: Doug Hill <email@hidden>
- Date: Tue, 12 Jan 2010 15:27:10 -0800
Jim,
Thanks for your reply. I will file a bug.
It's interesting that you mentioned data formatters because another "bug" I'm seeing is that old QuickDraw-style Regions (RgnHandle) are not being displayed in the variables display pane anymore. It displays the address and the type but doesn't display the data anymore. This used to work with Xcode 3.1.x. I'll include this information in the bug report.
Doug Hill
Oracle Corp.
On Jan 12, 2010, at 10:54 AM, Jim Ingham wrote:
> Please file a bug on this. Generate the Xcode/gdb log (you can turn this on in the debugging pane of the Xcode preferences) and include that in the bug.
>
> The debugger needs to put the ObjC runtime into a special mode to run code on one thread while the other threads are stopped, and this message comes if we've let another thread run without turning off this special mode. The most likely cause of this is the Xcode Data Formatters, so you can probably work around the problem by turning off the data formatters.
>
> There was one bug that was in the Xcode 3.2 release that would cause this problem, but that was fixed in 3.2.1. We haven't seen any other reports of the problem since then.
>
> Jim
>
> On Jan 11, 2010, at 6:51 PM, Doug Hill wrote:
>
>> I recently upgraded to Xcode 3.2.1. I converted my existing projects to 3.2 format, although this was only partially successful, and had to recreate some projects from scratch due to bugs in Xcode. I'm now trying to debug some frameworks and am getting strange behavior.
>>
>> Sometimes when I'm debugging with Xcode, a crash in my framework will cause the process to quit and I get the Crash Reporter dialog. GDB doesn't catch the exception and doesn't break into the debugger. Looking through the Console log I see many of the following messages:
>>
>> objc[2262]: DEBUGGER MODE: debugger is buggy: can't run debugger mode from two threads!
>> xxx
>> I did a search on the Xcode Apple mailing list and got no hits. I did a Google search for this phrase (and partial phrase) and got no hits. I did a Bing search and I got this result:
>>
>> http://www.opensource.apple.com/source/objc4/objc4-437/runtime/objc-runtime.m
>>
>> Which appears to be sourcecode for the Objective-C runtime and has the line of code with the error message. This doesn't help me much since it appears to be internal logic on how to handle debug information on threads. I'm not running multiple instances of GDB or Xcode.
>>
>> I wanted to find out if this is a known problem, if are there any workarounds, or should I just file a bug with Bug Reporter?
>>
>> Thanks.
>>
>> Doug Hill
>> Oracle Corp.
>> _______________________________________________
>> 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
>
_______________________________________________
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