When debugging in the vscode interface, you need to enter the parameter code in the terminal.

Question:
When running other people's code, sometimes I don't want to make major changes to the code, and I'm used to debugging in the IDE, so I don't want to use gdb, so...

Solution:

把terminal中输入的命令转到vscode中的 launch.json中

eg:
Insert image description here

Write the parameters that need to be input from the command line in the above new、 --name、 --data-dir、 --batch-size、figure into launch.json in the order in which arg is read in the source code.
Insert image description here

Guess you like

Origin blog.csdn.net/mr1217704159/article/details/121380505