Debugger() Deprecated

What are we supposed to use now, since Debugger() was deprecated in 10.8:

Answered by DTS Engineer in 792149022

Would you believe that I’ve answered this before (-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Would you believe that I’ve answered this before (-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Well, __builtin_trap works, but how do you step past it, like you could the Debugger() call?

My current workaround is:

#pragma mark - Debugging
void LineSolver::PreciseDebug(vector<unsigned char> &lineFromBoard)
{

	if((myType == COL_SOLVER) && (myIndex == 9)){
		callCount++;
		if(callCount >= 1){
			cout << DumpColorLine(lineFromBoard, true) << endl << endl;
		}
	}
}

I just set a breakpoint in there.

Setting a breakpoint is the best option IMO. However, if you really want to drop into the debugger in exactly the same way as Debugger, you can do that with pthread_kill.

pthread_kill(pthread_self(), SIGTRAP);

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Debugger() Deprecated
 
 
Q