Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Visual Studio 2022

You're reading from   Hands-On Visual Studio 2022 A developer's guide to exploring new features and best practices in VS2022 for maximum productivity

Arrow left icon
Product type Paperback
Published in Jun 2022
Publisher Packt
ISBN-13 9781801810548
Length 350 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Miguel Angel Teheran Garcia Miguel Angel Teheran Garcia
Author Profile Icon Miguel Angel Teheran Garcia
Miguel Angel Teheran Garcia
Hector Uriel Perez Rojas Hector Uriel Perez Rojas
Author Profile Icon Hector Uriel Perez Rojas
Hector Uriel Perez Rojas
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part 1: Visual Studio Overview
2. Chapter 1: Getting Started with Visual Studio 2022 FREE CHAPTER 3. Chapter 2: Configuring the IDE 4. Chapter 3: Improvements in Visual Studio 2022 5. Chapter 4: Creating Projects and Templates 6. Chapter 5: Debugging and Compiling Your Projects 7. Part 2: Tools and Productivity
8. Chapter 6: Adding Code Snippets 9. Chapter 7: Coding Efficiently with AI and Code Views 10. Chapter 8: Web Tools and Hot Reload 11. Chapter 9: Styling and Cleanup Tools 12. Chapter 10: Publishing Projects 13. Part 3: GitHub Integration and Extensions
14. Chapter 11: Implementing Git Integration 15. Chapter 12: Sharing Code with Live Share 16. Chapter 13: Working with Extensions in Visual Studio 17. Chapter 14: Using Popular Extensions 18. Chapter 15: Learning Keyboard Shortcuts 19. Other Books You May Enjoy

Exploring breakpoints in Visual Studio

Breakpoints are a fundamental part of software development. They allow you to stop the flow of your application at any point you want to inspect the state of your objects.

To place a breakpoint in Visual Studio, it is enough that we position ourselves right next to the numbering of the lines. This will start showing a gray circle that will appear and disappear as we move the cursor over the line numbers, as shown here:

Figure 5.6 – The location for placing breakpoints in Visual Studio

Once we find the line we want to debug, we just need to left-click once, which will cause the circle to turn red, as shown in Figure 5.7. Once you have done this, if you move the cursor away from the circle, you will be able to see how it remains as it is, as shown here:

Figure 5.7 – Placing a breakpoint

If we proceed to execute the application with the breakpoint set, we will see how the application...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image