Skip to content

Error when passing args or envs with nolldb. #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ios-deploy/ios-deploy.m
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ void usage(const char* app) {
@" -t, --timeout <timeout> number of seconds to wait for a device to be connected\n"
@" -u, --unbuffered don't buffer stdout\n"
@" -n, --nostart do not start the app when debugging\n"
@" -N, --nolldb start debugserver only. do not run lldb\n"
@" -N, --nolldb start debugserver only. do not run lldb. Can not be used with args or envs options\n"
@" -I, --noninteractive start in non interactive mode (quit when app crashes or exits)\n"
@" -L, --justlaunch just launch the app and exit lldb\n"
@" -v, --verbose enable verbose output\n"
Expand Down Expand Up @@ -2037,6 +2037,11 @@ int main(int argc, char *argv[]) {
return exitcode_error;
}
}

if (debugserver_only && (args || envs)) {
usage(argv[0]);
on_error(@"The --args and --envs options can not be combined with --nolldb.");
}

if (!app_path && !detect_only && !command_only) {
usage(argv[0]);
Expand Down