vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

fetch wrong argument if comma existing in java main argument

Open woderchen opened this issue 4 years ago • 0 comments

[provide a description of the issue]

Environment
  • Operating System: mac os 10.15.6 (19G2021)
  • JDK version:1.8.0_191
  • Visual Studio Code version: 1.52.1
  • Java extension version:v0.12.1
  • Java Debugger extension version: v0.30.0
Steps To Reproduce

1.this is java project, config arguments before Run

2.input args param in lanuch.json. example: { "type": "java", "name": "light-core-generator", "request": "launch", "mainClass": "daq.light.core.Generator", "projectName": "light-job-core", "vmArgs": "-Ddaq.job.forbid-period=22:00~21:00 ", "args": "-sSortPkColumn \"{deptdict:'dept_code',staffdict:'dept_code'}\" -sSortPkColumnType char -sSqlMethod pk" }

  1. then run main method in java and check those arguments with debug mode i want to fetch argument according to args[++i]) in main(String[] args), but the string "{deptdict:'dept_code',staffdict:'dept_code'}" will be divided into two argument as comma existing. if change the comma to "{deptdict:'dept_code'_staffdict:'dept_code'}", it's my expectation.

i try to debug on IDEA, input arguments at Program Agruments in Run/Debug Configurations as below: -sSortPkColumn "{tb_deptdict:'dept_code',tb_staffdict:'dept_code'}" -sSortPkColumnType char -sSqlMethod pk , no this issue. if you need more info. pls let me know, thanks.

Current Result

the string "{deptdict:'dept_code',staffdict:'dept_code'}" will be divided into two argument as comma existing

Expected Result

the string "{deptdict:'dept_code',staffdict:'dept_code'}" will be as a whole

Additional Informations

woderchen avatar Jan 13 '21 08:01 woderchen