How can I see the full error or warning in Xcode?

2019-03-17 13:09发布

问题:

No matter how large I make the window, this is all I can see of warnings:

How can I see the full text of the warning at the place it appears?

I could hover the mouse over the warning as it appears in the left pane and, after waiting long enough, a tooltip appears with the full text, but I find this very awkward... Is this the only way?

回答1:

The Issue Navigator is a compact representation. If you really want all the details, you can view the build transcript:

  • cmd+7
  • click on the top-most "Build $APP" section.
  • locate the warning or error
  • click the buttons on the right to see the full details of the step you are interested in

Double clicking on a message will then reveal the source location in the editor.



回答2:

#### Here's a very handy trick: ####

1) Look in the issue navigator

2) Go to: xCode preferences > General > "Issue Navigator Detail" > now boost the dropdown to 10 lines.

Now you can see the whole message in the issue navigator!



回答3:

The easiest way to do it is right clicking the message in the "Issue Navigator" and choosing "Reveal in Log".



回答4:

I'm sure if you expand the left hand pane, it shows the full error. Ensure you are in the Warnings/Errors tab.

As far as I'm aware, this is the only way to do it.



回答5:

you can find, the warning/error list in the Warning tab section on the left



回答6:

You can similarly hover over the warning itself. Even "unused variable" can be squished small enough so it can't fit (if you downsize the editor enough). Hover over the warning in place is the closest you'll come.



回答7:

In Xcode 9.2 (at least), you can single click on the error / warning icon in the tooltip and it will expand.



标签: xcode xcode4