VC++ Debugging

This is a discussion on VC++ Debugging within the C++ Programming forums, part of the General Programming Boards category; How do you run your program with parameters?...

  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
    Location
    Mt. Prospect, IL
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,500
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,088
    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, 09: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21