-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
exit without error message #3948
Comments
Without knowing what any of the called functions do, there is little I can do. Can you provide a stacktrace? |
void handle_message(uWS::WebSocket<false, true, PerSocketData>* ws,
string_view msg, uWS::OpCode code) {
json data = json::parse(msg);
try {
OptimizerInput inp = data.get<OptimizerInput>();
} catch (const exception& e) {
cerr << e.what() << '\n';
std::cout << boost::stacktrace::stacktrace();
}
ws->send(data.dump(), code);
}
|
Can you set a breakpoint to the line where you call parse and find the last line before the exit? (This looks like an issue in your setup - the library throws exceptions inherited from |
the exit is caused by |
Can you then debug into it? |
Description
Reproduction steps
Expected vs. actual results
expect to see error message
Minimal code example
No response
Error messages
No response
Compiler and operating system
windows, Visual Studio 16
Library version
nlohmann_json/3.11.2
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: