How/where to provide command line parameter of app do debug?

Sysprogs forums Forums VisualGDB How/where to provide command line parameter of app do debug?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10099
    hfrmobile
    Participant

    Where can a specify command line parameters to the app I like to debug?

    Standard VS project setting will be ignored.

    myapp -p1 -p2

     

    #10105
    support
    Keymaster

    Hi,

    You can do it via VisualGDB Project Properties -> Debug Settings -> Program Arguments.

    #10116
    hfrmobile
    Participant

    To be more accurate: VisualGDB Project Properties -> Debug Settings

    Start GDB in the following mode: Debug a new instance
    Debugged executable: $(TargetPath)
    Main executable arguments: -p1 -p2

    The cause why I asked was that didn’t find because it really was not visible because my “Start GDB in the following Mode” was set to custom. In that case, no arguments can be provided.

    Anyway, problem solved.

     

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.