Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display time in Xcode breakpoint

In Xcode 6 I have created a breakpoint that do not interrupt the program execution to display informations.

enter image description here

Here is the result between results of NSLog calls:

enter image description here

I now want to add a time information to this message as done by NSLog does. How can I achieve this?

Similar behavior

I know how to obtain such a result using Debugger Command but I want to know how to achieve it using Log Message:

enter image description here

like image 418
Dominique Vial Avatar asked Sep 17 '25 08:09

Dominique Vial


1 Answers

As you can see in the hints: @exp@

so you can write this:

@[NSDate date]@ - some additional message

Output will be:

2018-06-28 14:06:45 UTC - some additional message

(works only for the 'Log Message' type)

like image 124
Marek Manduch Avatar answered Sep 19 '25 15:09

Marek Manduch