- Hands-On Object:Oriented Programming with C#
- Raihan Taher
- 304字
- 2021-07-02 12:44:39
The Command and Immediate windows
The Command window is very similar to Command Prompt of the Windows operating system. You can execute commands using this tool. In the VS command line, you can execute commands on the project you are working on in. Commands are very handy and increase your productivity as you don't have to drag your mouse around to execute something. You can run a command to make this happen easily.
To open a Command window in VS, you can click on the View menu and then Windows. After this, select Command Window. Alternatively, you can use the keyboard shortcut, Ctrl + Alt + A, to open it. When you are in the Command window, you will see a > placed in front of every input. This is called a prompt. In the prompt, when you start typing, it will show an Intellisense menu for you. Start typing Build.Compile, at which point the project will be compiled for you as well. You can also use Debug.Start to start debugging the application. You can debug your application easily using commands. I will list some of the important commands that are used most often when debugging using the Command window:
- ?: Tells you the value of a variable (you can also use Debug.Print to do the same)
- ??: Sends the variable to the watch window
- locals: Shows the locals window
- autos: Shows the autos window
- GotoLn: Sets the cursor to a specific line
- Bp: Puts a breakpoint in the current line
Similar to the Command window, an Intermediate window lets you test code without having to run it. An Intermediate window is used to evaluate, execute a statement, or even print variable values. To open the Immediate window, go to Debug | Windows and select Immediate.
- Mastering Entity Framework Core 2.0
- Apache Oozie Essentials
- SQL Server 2012數(shù)據(jù)庫技術(shù)及應(yīng)用(微課版·第5版)
- JIRA 7 Administration Cookbook(Second Edition)
- Visual Basic程序設(shè)計(第3版):學(xué)習(xí)指導(dǎo)與練習(xí)
- Getting Started with PowerShell
- Linux環(huán)境編程:從應(yīng)用到內(nèi)核
- Reactive Programming With Java 9
- Learning DHTMLX Suite UI
- 自制編程語言
- 學(xué)習(xí)正則表達(dá)式
- 機器學(xué)習(xí)微積分一本通(Python版)
- 實戰(zhàn)Java高并發(fā)程序設(shè)計(第2版)
- SpringBoot從零開始學(xué)(視頻教學(xué)版)
- Unity 5.X從入門到精通