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. C#
  4. Console application with args: Is there a way to pass args from VS when debugging?

Console application with args: Is there a way to pass args from VS when debugging?

Scheduled Pinned Locked Moved C#
csharpvisual-studiocomdebuggingquestion
3 Posts 3 Posters 0 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.
  • F Offline
    F Offline
    Frankidoze
    wrote on last edited by
    #1

    Hi all, I want to run a console application in C# from visual studio in debug mode (by pressing F5). Is there a way to enter the arguments thru VS? Thank you.

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    R L 2 Replies Last reply
    0
    • F Frankidoze

      Hi all, I want to run a console application in C# from visual studio in debug mode (by pressing F5). Is there a way to enter the arguments thru VS? Thank you.

      "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

      L Offline
      L Offline
      laserbaronen
      wrote on last edited by
      #2

      I think you can set commandline arguments in Project settings :)

      fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.

      1 Reply Last reply
      0
      • F Frankidoze

        Hi all, I want to run a console application in C# from visual studio in debug mode (by pressing F5). Is there a way to enter the arguments thru VS? Thank you.

        "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

        R Offline
        R Offline
        Rob Philpott
        wrote on last edited by
        #3

        There sure is. Take a look at your project's properties under the debug tab (or wherever it is on the version of Visual Studio your using). You'll find a field called Command Line Arguments.

        Regards, Rob Philpott.

        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