I am in the Xcode debugger. I do see the console print outputs and the llvm at the bottom . But the debugger buttons and most notably the variables/watches are not showing. I have looked through all the menu options and clicked on many tiny icons trying to discover how to have them show.
What is the IDE command to show the debugger variables and watches?
It's the middle of these three icons:
Related
When I option click an iOS symbol in Xcode's editor I get a popup summary. Near the bottom there is a link (such as "Class Reference") which should take me to the Documentation for that item. When I click it I am indeed taken to the Documentation Window but the contents of the window do not change - i.e. it continues to display whatever was being displayed before I clicked. In the past these documentation links worked properly. I am not certain if the errant behavior began when I upgraded to Xcode 9. Any help?
Whenever I hit a breakpoint and step into or over lines the assistant editor shows itself. I've investigated this in XCode > Behaviors > Edit Behaviors, but I can't seem to find where such a behavior would be configured.
I need to disable this because the my screensize of my macbook air makes reading code difficult with two editing windows.
In the Edit Behaviors configuration box:
On the right, among the actions, there's a check-off for
showing/hiding various editors, including the Assistant Editor.
On the left, among the categories, there's Pause under Running.
If that item was checked off, it would start up the Assistant Editor during pauses/breakpoints in the debugging session.
I do wonder if it's possible to open the Firefox's (I have 18.0.1) debugger in a new window/tab as right now the debugger's pane is too small at the bottom of the page.
[Edit]
Ok, I've made a few screenshots to show that Firefox does have a debugger on its own:
Current Firefox nightlies have a little two-window icon next to the 'x' in the debugger toolbar that tears it off into a separate window, but that might not be present in 18 yet...
If you mean Firebug, these directions should be sufficient.
Click on the Firebug launch icon so the hidden submenu appears.
Hover over "Firebug UI Location"
Select "Detached"
EDIT:
Ok I see... you are using the Firefox built in Developer Tools and not Firebug.
So as far as I understand, there seems to be no way to run the JavaScript Debugger on a separate window for non-remote work. Here is a statement directly from the JS Debugger docs:
The JavaScript debugger is available in two varieties: one for
debugging content running directly in Firefox, and another that lets
you debug code running on a Firefox OS device, or in Firefox on an
Android device. The main difference between the two is that the Remote
Debugger runs in its own window, while the web content debugger runs
in the same tab as the Web content you're debugging.
Also here is a link to the Debugger's docs:
https://developer.mozilla.org/en-US/docs/Tools/Debugger
Why do you think that the Debugger view is too small? If you hover over the top bar, you can drag it up/down as much as you need to. Aslo are you sure that the JavaScript Debugger is what you're trying to use? For example Firefox has other tools as well. The "More Tools" link shows other built in tools as well - all these tools together are called the "Developer Tools". Here is a link to all of their docs: https://developer.mozilla.org/en-US/docs/Tools
I hope this makes more sense now!
Screenshot:
I have a dual-head setup for Xcode that I use for developing on iOS, with a split-pane editor and counterpart assistant on each screen. When I run a project it throws that away and takes over half my (active) screen with the debug navigator and console -- is there a way to have Xcode not show those on run? Or, even better, always show them on a particular screen?
Preferences->Behaviors. The default behaviour for "Running: Generates Output" is to switch to the debugger view and show the console - either turn that off or configure it to do something else.
I'm learning Xcode off a slightly older (10.2) book that deals with Project Builder. I've been using Xcode for ansi C for a while, but I can't find the output window that appears when you Build & Run an app. I am launching my apps from the commandline, but of course that doesn't help me if I want to set breakpoints or something. Where is the program output window that should appear when I build & run. Do I have it hidden or something ? Why can't I find it ?
Shift-Cmd-R brings up the output window.
There are a few windows that you should know about:
Debugger Console (keyboard shortcut = Shift-Cmd-R): This will show you any console output and you can click the breakpoints button to break into the GDB console debugger
Debugger (keyboard shortcut = Shift-Cmd-Y): This is the debugger window that shows your breakpoints with the source and includes table views for local variables and the stack
Breakpoints window (keyboard shortcut = Option-Cmd-B): This is a nifty window to find and manage breakpoints in a project
This cocoaheads talk has a lot of useful info about debugging with xcode.
Hope this helps.