Debugging is a common, and necessary, part of programming. As a mature IDE, Visual Studio for Mac contains a whole suite of features to make debugging easy. From safe debugging, to data visualization, this article will explain how to use the full potential of debugging in Visual Studio for Mac.
- Wireless Debugging with Visual Studio for Mac Today we are going to take a look at how to connect your Android Device wirelessly to your Mac and debug your Applications wirelessly with the all new Visual Studio for Mac!
- This tutorial shows how to develop a simple web service using Visual Studio for Mac. We’ll go through how to create and debug an ASP.NET Core web service using C#.
- Visual Studio Mac and Problem with Debugging. Hi, everyone, I'm having an issue with using Visual Studio for Mac. Everything seems to be working fine, but when I press cmd+enter in VS to begin using VS with Unity I am met with a litany of warnings that not only have never come up before using VS, but do not appear in the actual Unity scene.
- Visual Studio Code is the first code editor, and first cross-platform development tool - supporting OSX, Linux, and Windows - in the Visual Studio family. At its heart, Visual Studio Code features a powerful, fast code editor great for day-to-day use.
- Debug fortran code in OSx. I have recently switch to a macbook air from a lenovo pc, overall I am quite happy with the change, the macbook is a delight to use, you have the best of linux terminal and the best of windows user interface and programs e.g.
I want to use 'Step into' debugging in visual studio. I saw question this, 'chrome developer debugging shortcuts on a mac'. I did 'Step over' method but I still can't do 'Step into' method.
This is the way in this answer, 'how to 'Step into' debugging on Mac?'
- F11
- Command-; (semi-colon) on Mac
- Control-; (semi-colon) on other platforms.
When i do F11, query file open. When I do Command-; (semi-colon), selected text delete. When I do Control-; (semi-colon), nothing happened.
help me..
2 Answers
You are on a Mac machine and the keyboard is a bit different than a PC machine. Visual Studio is a PC application that you run on a virtual machine in Parallel Desktops. Some shortcuts that you are so used to in Windows might not work as expected, and this you have already discovered. You can however customize keyboard shortcuts in Parallel Desktop, in order to achieve similar results.
To Customize Keyboard Shortcuts:
- Do one of the following:
- Option-click (Alt-click) the Parallels icon in the menu bar and choose Preferences.
- If the Parallels Desktop menu bar is visible at the top of the screen, choose Parallels Desktop > Preferences.
- Click Keyboard.
- If necessary, click the lock icon and enter an administrator password.
- PD6_Configuring Keyboard Preferences
- Pressing a key combination in the From column while working in a Windows program triggers the key combination in the To column.
Do one of the following:
- To edit an existing key combination, double-click the key combination. Click modifier keys to select or deselect them. If you wish, change the character in the text field.
- PD6_Remapping Keyboard
- To delete a key combination, select it and click the Remove button CE_Button_Delete.
- To add a new key combination, click the Add button PlusButton.
- To disable a key combination without deleting it, click the checkbox next to the key combination to deselect it.
- If you're using multiple operating systems with Parallels Desktop, you can create keyboard profiles for each OS.
Note: 1. Some key combinations can't be edited or deleted.
For anyone using VMware, the same thing can be accomplished by:
- From the Menu bar - VMware Fusion >> Preferences
- Keyboard & Mouse
- Select the Mac Host Shortcuts
- Uncheck the Mac OS host Keyboard Shortcuts
This is better (in IMHO) because it does not send Mac shortcuts to the VM. I have Windows 10 Pro / VS 2015 installed on my VM for when I work at home. It keeps the keyboard command separate between the two. I'm in PC mode - PC commands. I'm in Mac mode - Mac commands.
VMware help on the topic here
Not the answer you're looking for? Browse other questions tagged macosmackeyboard-shortcutsvisual-studio-2010 or ask your own question.
-->Visual Studio for Mac includes UI support for the debugger, allowing visualizations of the values of a variable, field, or property while debugging. These data visualizers show an extended version of the data and allow developers to inspect known structures, for example showing the color of a color struct.
Visualizers in the debug Local pad can be displayed by clicking on the preview icon that appears to the right of the value, when the user hovers over the row:
The list below looks at many of the new visualizations available when debugging in Visual Studio for Mac.
Point
A Point/PointF, or CGPoint in iOS and Mac, will render as a tuple showing the X and Y values in the debug pad:
Size
A Size/SizeF, or CGSize in iOS and Mac, will render as a rectangle. It is drawn to scale until a dimension grows past 250 px, at which point it will scale the rectangle with the largest dimension as 250 px:
Visual Studio For Mac
Rectangle
A Rectangle/RectangleF, or CGRect in iOS and Mac, will display the dimensions and origin. Similar to Size, it is drawn to scale, until a dimension grows past 250 px:
Coordinate
Coordinates are plotted on a map, with the location pinned to the center:
Color
This will display UIColor, CGColor, and Color properties, depicting the color preview, RGBA components, Hue-Saturation-Lightness values, and the hex value of the color:
X Code
Images
Media will be rendered to scale, up to a maximum dimension of 250 px, and will be scaled to fit when the image exceeds 250 px:
Bezier Curves
The visualizer will display an NSBezierPath:
String
A string of fewer than 100 characters is displayed in full, without a preview. Longer strings are displayed in full in the preview. Strings are editable, and the visualizer is accompanied by an edit button, allowing the string value to be edited either in the preview or in the String Value Editor, shown below:
Small Strings:

]
Medium-length Strings:
Editor:
Microsoft Visual Studio For Mac
IEnumerable
Visual Studio For Mac Debug Unit Test
IEnumerable enumerates all values; the values of each can be viewed by clicking the Show Values button. The IEnumerable option will not display values for objects such as Array, ArrayList, List<>, Dictionary<,> as these have their own debugger visualizers.
Other Visualizers
Some other types that also have their own inline visualizers are listed below:
- Primitives
- This will show the raw value of the primitive type.
- Enum
- This will display the field value without the enum Type qualifier.
- Tuple
- Displayed in the format (,)
- Null
- Shows 'null' value.
- URL
- This will display a clickable hyperlink.
- IntPtr
- This will display a hexadecimal representation of the IntPtr.