-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Possible to call dump from lldb? #1666
Comments
The error handler has a default parameter - can you skip it in the call? |
@nlohmann - thanks for the reply. I've tried that, but then i get the error: error: too few arguments to function call, expected 4, have 3 |
Strange. Can you try to used |
Sure.
produces:
|
just checking back on this - any ideas? thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
any luck here - is this not possible? cheers. |
Can you just put in the number |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This seems to work somewhat!
|
@jmarrec - thanks! That is a lifesaver. |
Would like to be able to dump a json object while debugging. Is there another way to view the object as a string while debugging (without previously inserting a std::cout << test.dump() ?
(lldb) p test.dump(1,' ',true,nlohmann::detail::error_handler_t::ignore)
but got error:
error: cannot initialize a parameter of type 'error_handler_t' (aka 'nlohmann::detail::error_handler_t') with an rvalue of type 'int'
OSX 10.13.6 / Xcode 10.1
3.4.0
Thanks!
The text was updated successfully, but these errors were encountered: