Thread: VC++ Debugging

  1. #1
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640

    VC++ Debugging

    How do you run your program with parameters?
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    can you elaborate a bit?

    do you mean with command line arguments? ie:
    Code:
    ~$> prog_name -flag1 -flag2
    if this is it then I don't think there is a way to do that; at least I've never knew how.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Somewhere in the project or debug properties, there's a dialog which allows you to set the command line params to be set when you debug a program.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    IN VC++ 6.0, you go to Project->Settings and switch to the Debug tab, then type in your arguments (without the executable name) into the Program Arguments box.

    For .NET I'm not sure how you'd do it, a quick search of MSDN mentioned a <Project> Property Pages dialog box.

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    In VC .NET 2003 if you go to the Workspace Property Pages by right clicking the project and clicking properties at the bottom. Then click in the root of the "Configuration Properties" There should be two choice "General" and "Debugging" click on debugging and you should see "Command Arguments" Just put the arguments there and you should be set.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  6. #6
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    Thanks everyone =)
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dev-C++: Problems with Breakpoint Debugging
    By Thileepan_Bala in forum C Programming
    Replies: 1
    Last Post: 01-17-2008, 10:48 AM
  2. Problem in debugging in Eclipse
    By Bargi in forum Linux Programming
    Replies: 1
    Last Post: 08-21-2007, 09:53 AM
  3. gdb no debugging symbols found
    By Laserve in forum Linux Programming
    Replies: 8
    Last Post: 09-17-2006, 08:56 AM
  4. Debugging book recommendation
    By dagans in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 09-13-2005, 07:35 PM
  5. debugging directx apps
    By confuted in forum C++ Programming
    Replies: 1
    Last Post: 08-16-2003, 08:56 AM