NVIDIA / nsight-vscode-edition

A Visual Studio Code extension for building and debugging CUDA applications.
Other
68 stars 11 forks source link

support for multiple arguments to "program" #38

Open jeethesh-pai opened 1 year ago

jeethesh-pai commented 1 year ago

Hi, Thank you for this wonderful extension. I am trying to use this extension for debugging an CUDA application. Unfortunately this application has more than one argument , but this extension allows only one string to be passed to the "args" : "" instead of "args": [] in the launch.json file. Can you add this feature to this extension.

I tried with cuda-gdb it accepts all the arguments to be passed on to the debuggee application but nsight-extension do not. Is there a way to pass more than one argument to the debuggee application.

Thanks and regards, Jeethesh

sanannavyaa commented 1 year ago

Hi Jeethesh!

Thanks for the feedback! You can pass multiple values in args by separating the values using a ";" which means it would look something like

"args": [ 
"--loadEngine=/workspaces/debugEngine.engine;--plugins=NVIDIA_AI_IOT/tensorrt_plugin_generator/plugin_codes/MsdeformattentionpluginIPluginV2DynamicExt/libMsdeformattentionpluginIPluginV2DynamicExt_debug.so"
]

Hope this helps!