Skip to content
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

子进程的cout和crash信息如何能看到呢? #210

Open
andrewwang79 opened this issue Jul 16, 2020 · 3 comments
Open

子进程的cout和crash信息如何能看到呢? #210

andrewwang79 opened this issue Jul 16, 2020 · 3 comments

Comments

@andrewwang79
Copy link

子进程单独跑时,cout的信息在console都能看到。
主进程管理后,能在哪里看到这些信息呢?

@zhengshuxin
Copy link
Member

你可以把信息输出至日志中。

@andrewwang79
Copy link
Author

谢谢回复。
cout可以改成日志模式。那进程crash的信息怎么输出呢?现在crash信息被主进程接收了,console看不到信息。

@zhengshuxin
Copy link
Member

可以产生 core 文件,用 gdb 调试一下即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants