The pushpin icon changes to the pinned position, and the data tip is again pinned only to the code window. To repin a floating data tip to source, hover over it in the code editor and select the pushpin icon. Floating data tips close when the debugging session ends. The pushpin icon changes to the unpinned position, and the data tip now floats or can be dragged above all open windows. To float a pinned data tip, hover over the data tip and select the pushpin icon from the context menu. If you hover over a variable in another function that has the same name as a variable in the current context, the value of the variable in the current context is displayed. This doesn't work for pinned or floating data tips.ĭata tips are always evaluated in the context where execution is suspended, not the current cursor or data tip location. The data tip stays transparent as long as you hold down the Ctrl key. To make a data tip transparent to see code that is underneath it, while in the data tip, press Ctrl. A data tip appears, showing the name and current value of the variable. When paused at the breakpoint, hover over any variable in the current scope. Set a breakpoint in your code, and start debugging by pressing F5 or selecting Debug > Start Debugging. Work with data tipsĭata tips appear only in break mode, and only on variables that are in the current scope of execution. If this is the first time that you've tried to debug code, you may want to read Debugging for absolute beginners and Debugging techniques and tools before going through this article. Data tips work only in break mode and only with variables that are in the current scope of execution. Applies to: Visual Studio Visual Studio for Mac Visual Studio Coderĭata tips provide a convenient way to view information about variables in your program during debugging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |