Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Start with debugging and Start without?

Start with debugging and Start without?

Scheduled Pinned Locked Moved Visual Studio
questiondebugging
4 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 12941702
    wrote on last edited by
    #1

    What is the difference? Either way the program runs. Only thing I noticed is when I use Start without debugging after I have viewed my output and hit a key then the "Press any key to continue..." pops up. Otherwise when I choose Start with debugging the program runs with no continue message. Isn't the debugger only used in the code editor window?

    L A 2 Replies Last reply
    0
    • U User 12941702

      What is the difference? Either way the program runs. Only thing I noticed is when I use Start without debugging after I have viewed my output and hit a key then the "Press any key to continue..." pops up. Otherwise when I choose Start with debugging the program runs with no continue message. Isn't the debugger only used in the code editor window?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      These are just two options in Visual Studio. If you start with debugging, then you can interrupt the program and use the debugger to see what is happening at any point in the program. If you start without, then the program just runs to completion.

      1 Reply Last reply
      0
      • U User 12941702

        What is the difference? Either way the program runs. Only thing I noticed is when I use Start without debugging after I have viewed my output and hit a key then the "Press any key to continue..." pops up. Otherwise when I choose Start with debugging the program runs with no continue message. Isn't the debugger only used in the code editor window?

        A Offline
        A Offline
        Afzaal Ahmad Zeeshan
        wrote on last edited by
        #3

        No, start with debugger means that your application will run in a virtualized environment where the signals, variables, and other stuff that program uses will be easily "seen". In the release mode, your program's code is compiled down to native code and you cannot debug it easily. In debug mode, your breakpoints can be set and you can stop the program (as Richard said in the post above), to check what is working and what is not. In release configuration, you get the best optimized native code to run on the machine; but you lose the debug stuff. In the code editor, that is IntelliSense, for auto correcting the code, or the background interpreter and compiler that keeps telling you where an error is occuring. That is not debugging, that is just making the syntax right. Of course the program starts, runs and executes. But there are various other issues, such as the errors are thrown and application breaks, you are not told anything about it. In such cases, logging is used.

        Member 12974235 wrote:

        Otherwise when I choose Start with debugging the program runs with no continue message.

        We are sorry, since you have not shared any code sample with us we cannot understand why this happens. For more on this please read, What is the difference between Release and Debug modes in Visual Studio? - Stack Overflow[^]

        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

        L 1 Reply Last reply
        0
        • A Afzaal Ahmad Zeeshan

          No, start with debugger means that your application will run in a virtualized environment where the signals, variables, and other stuff that program uses will be easily "seen". In the release mode, your program's code is compiled down to native code and you cannot debug it easily. In debug mode, your breakpoints can be set and you can stop the program (as Richard said in the post above), to check what is working and what is not. In release configuration, you get the best optimized native code to run on the machine; but you lose the debug stuff. In the code editor, that is IntelliSense, for auto correcting the code, or the background interpreter and compiler that keeps telling you where an error is occuring. That is not debugging, that is just making the syntax right. Of course the program starts, runs and executes. But there are various other issues, such as the errors are thrown and application breaks, you are not told anything about it. In such cases, logging is used.

          Member 12974235 wrote:

          Otherwise when I choose Start with debugging the program runs with no continue message.

          We are sorry, since you have not shared any code sample with us we cannot understand why this happens. For more on this please read, What is the difference between Release and Debug modes in Visual Studio? - Stack Overflow[^]

          The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Afzaal Ahmad Zeeshan wrote:

          Start with debugging the program runs with no continue message.

          Normal behaviour in Visual Studio debug mode.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups