You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
默认值是trpc_cpp_default.yaml, 我在程序的运行目录放置一个trpc_cpp_default.yaml文件,运行报错
start server with config, for example: /xxx/build/helloworld_svr --config=default.yaml, 看了代码逻辑
if (google::GetCommandLineFlagInfo("config", &info) && info.is_default) {
std::cerr << "start server with config, for example: " << argv[0] << " --config=default.yaml" << std::endl;
exit(-1);
}
这里好像又不让使用默认值?
The text was updated successfully, but these errors were encountered:
使用命令行启动程序, 通过gflags指定参数正常 ./helloworld_svr --config=../conf/trpc_cpp_fiber.yaml
但是如果使用vscode进程调试
示例中HelloWorldServer是继承自TrpcApp, gflags参数
默认值是trpc_cpp_default.yaml, 我在程序的运行目录放置一个trpc_cpp_default.yaml文件,运行报错
start server with config, for example: /xxx/build/helloworld_svr --config=default.yaml, 看了代码逻辑
这里好像又不让使用默认值?
The text was updated successfully, but these errors were encountered: