Add Command Line Arguments to DefaultContext#697
Add Command Line Arguments to DefaultContext#697jayhf wants to merge 1 commit intogetsentry:mainfrom
Conversation
|
Hey @jayhf, I believe we're already adding the command line input to Does it miss some bits of info you expect to be there along with other CL arguments? |
|
Ah, that's great to know. I didn't realize. Where exactly can those context be found? I haven't seen any of those fields in the crash logs I'm analyzing. Are there any docs you'd recommend for what information is available where? |
|
The command line arguments can be found at captured crash event's page in If you're sending crashes to Sentry with the default Crash Reporter instead then CL args should be listed in Also, you can consider enriching the events with custom contexts via the plugin's API if the default one misses some bits of info you're interested in. |
|
Sorry for the slow response here. I think I've figured out why I wasn't seeing the information before: Most of the issues I'm encountering are assertion failures, which ultimately result in the process exiting, but aren't treated as crashes by the Sentry plugin. Interestingly, even the crash context records |
|
Makes sense. I'll keep an eye on that issue, thanks! |

The command line arguments seem like a really useful piece of information to have when debugging crashes. This adds them to the DefaultContext so that they're readily available in Sentry