Closed YuxuanXie closed 5 years ago
There are essentially 2 methods to do this:
You can run edb from the command line and use --run
for example:
./edb --run /bin/ls /etc/*
You can use the UI to set application arguments for the next opened program. You can do this with the "Options -> Application Arguments" menu item. In there, you can add/remove/reorder arguments as you see fit.
I tried to add arguments in the "Options -> Application Arguments" menu item, but it did not work
And the first method works well. I really appreciate your help!
The menu option should work, if it isn't working, can you describe exactly what you did step by step so I can try to reproduce?
I can confirm that it's broken (or too unintuitive to use it correctly). I do as follows:
+
button5454
/bin/sleep
F9
, F9
→ get exit with code 1, with /bin/sleep: missing operand
in the console.BTW, third option (which does work) is to specify the arguments in the Run dialog.
Thanks very much for your help.
@10110111 Hmm, we'll have to look into that then. It's not a feature I use often, but it used to work!
@eteran I cannot use the GUI to add args.. See screenshot. The box won't let me type anything in and it has no "+" button or any way to add args... Am I missing something?
@itsallmathematics Sorry, that method of using the feature has actually be removed because it was surprisingly difficult to implement in a user-friendly way (It would contradict the other more direct methods of setting the arguments creating confusion).
For this reason, that dialog was moved to the view menu, since you can view the parameters, but not edit them.
The current correct way is either through the command line parameters or the file open-dialog.
Could you please tell me that how can i add the command line parameters when i debug? Thank you very much.