Setting breakpoints

Posted on 2014-08-14
Last Modified: 2014-08-14
Is it possible to set breakpoints for every line of code?

Is it possible to know what the first line of code is?  Meaning...when I debug - the first line of code I visit where I can set a breakpoint?

I'm new to MVC and I am wanting to get a better idea of what the code is doing, from the beginning.
Question by:knowlton
    LVL 74

    Assisted Solution

    by:käµfm³d 👽
    Not that I'm aware. You can always set a breakpoint at the start of your application and single-step through the code via the F10/F11 keys--the former steps over a line, even if it is a function all; the latter steps into a line, which means if you are at a function call you will proceed into that function's code. With an ASP.NET project it's a bit more difficult to know where execution begins. Once you are running live and you page is rendered in the browser, I would say that putting a breakpoint at the beginning of each action's function body would be cause you to break at the beginning of that execution.
    LVL 9

    Accepted Solution

    You could right click on the project and go down to debug and then choose step into new instance, that will go to where to program starts and allow you to step through.

    LVL 74

    Expert Comment

    by:käµfm³d 👽
    While dustock isn't incorrect in what he states, ASP.NET really has two forms of execution:  One is the actual execution of the ASP.NET host application, which is what dustock's example demonstrates, and the other is the processing of an actual request. Technically speaking, the host application is the only thing executing, but when you start thinking about what the client sees/does on your application, then for them execution is the processing of an individual request. This differentiation is what I was referring to above when I said, "it's a bit more difficult to know where execution begins".
    LVL 9

    Expert Comment

    Well said kaufmed!
    LVL 5

    Author Closing Comment

    Thank you both.  : )

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now