How to use command on visual studio

alice alice 80 Reputation points
2024-12-11T01:30:36.5533333+00:00

I generate a 123.exe execute file.

Run it with --enable-logging --v=1 (0, 2, ... ) from command line.

How to add the parameter to 123.exe on Visual studio.

P.S. I click the button run, it will automatically run 123.exe on visual studio

Now I also want to click the button run, it will automatically run 123.exe --enable-logging --v=1 on visual studio

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,317 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 86,491 Reputation points
    2024-12-11T01:54:51.13+00:00

    You can enter command arguments, like in the second window, in Debugging, at https://mirkwood.cs.edinboro.edu/~bennett/class/csci310/spring2015/notes/hello/one.html


  2. alice alice 80 Reputation points
    2024-12-12T02:47:13.1433333+00:00

    Follow these steps, it show the word, not the interface.

    how to convert it to interface?

    launch.vs.json

    {

    "version": "0.2.1",

    "defaults": {},

    "configurations": [

    {
    
      "type": "default",
    
      "project": "CMakeLists.txt",
    
      "projectTarget": "resource_manager.exe (my_project\\Release\\resource_manager.exe)",
    
      "name": "resource_manager.exe (my_project\\Release\\resource_manager.exe)"
    
    }
    

    ]

    }


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.