久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='k4ZyO'></bdo><ul id='k4ZyO'></ul>

    <small id='k4ZyO'></small><noframes id='k4ZyO'>

      <legend id='k4ZyO'><style id='k4ZyO'><dir id='k4ZyO'><q id='k4ZyO'></q></dir></style></legend>
    1. <tfoot id='k4ZyO'></tfoot>
      <i id='k4ZyO'><tr id='k4ZyO'><dt id='k4ZyO'><q id='k4ZyO'><span id='k4ZyO'><b id='k4ZyO'><form id='k4ZyO'><ins id='k4ZyO'></ins><ul id='k4ZyO'></ul><sub id='k4ZyO'></sub></form><legend id='k4ZyO'></legend><bdo id='k4ZyO'><pre id='k4ZyO'><center id='k4ZyO'></center></pre></bdo></b><th id='k4ZyO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='k4ZyO'><tfoot id='k4ZyO'></tfoot><dl id='k4ZyO'><fieldset id='k4ZyO'></fieldset></dl></div>
    2. 如何捕獲 kivy-client 崩潰日志并將其發(fā)送到我的服

      How can I catch kivy-client crash log and send it to my server?(如何捕獲 kivy-client 崩潰日志并將其發(fā)送到我的服務(wù)器?)

      1. <tfoot id='QIo8b'></tfoot><legend id='QIo8b'><style id='QIo8b'><dir id='QIo8b'><q id='QIo8b'></q></dir></style></legend>
        • <i id='QIo8b'><tr id='QIo8b'><dt id='QIo8b'><q id='QIo8b'><span id='QIo8b'><b id='QIo8b'><form id='QIo8b'><ins id='QIo8b'></ins><ul id='QIo8b'></ul><sub id='QIo8b'></sub></form><legend id='QIo8b'></legend><bdo id='QIo8b'><pre id='QIo8b'><center id='QIo8b'></center></pre></bdo></b><th id='QIo8b'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QIo8b'><tfoot id='QIo8b'></tfoot><dl id='QIo8b'><fieldset id='QIo8b'></fieldset></dl></div>
          • <bdo id='QIo8b'></bdo><ul id='QIo8b'></ul>
                  <tbody id='QIo8b'></tbody>

                <small id='QIo8b'></small><noframes id='QIo8b'>

              • 本文介紹了如何捕獲 kivy-client 崩潰日志并將其發(fā)送到我的服務(wù)器?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                當出現(xiàn)一些硬件問題并且我的 kivy 應(yīng)用程序崩潰時,我遇到了問題.例如在 Android 或 iOS 上.普通用戶看不到日志,我也看不到.

                I have problems when some hardware issues appears and my kivy app crashes. For example on Android or iOS. Regular users can't see the log, neither can I.

                所以,當我的應(yīng)用程序啟動時,我想創(chuàng)建單獨的進程并以某種方式查看主應(yīng)用程序的狀態(tài).萬一它崩潰了,我想將錯誤日志發(fā)送到我的服務(wù)器.那么,最好的方法是什么?也許另一個過程是多余的,我可以用更簡單的方式制作它?以及如何準確地捕獲崩潰日志?...謝謝!

                So, when my application starts, I want to create separate process and somehow look at the status of main application. In case of it's crash I'd like to send error log to my server. So, what is the best way to do this? Maybe another process is redundant and I can make it in more simple way? And how exactly I can catch crash log?...Thanks!

                推薦答案

                TLDR:使用 Sentry

                有不同類型的崩潰和不同類型的工具.

                There is different kind of crash, and different kind-of tools.

                本機崩潰:通常是段錯誤,是您無法真正做任何事情的低級別崩潰.這就是您在 Play 商店標簽上看到的內(nèi)容,原生崩潰/藝術(shù).任何回溯都不會與您交談,因為您將看到 Python 解釋器和所有其他線程的 C 跟蹤.用戶可以看到應(yīng)用程序 XXX 突然退出"或類似的內(nèi)容.有一些工具可以在本機崩潰的情況下顯示更好的消息并將其發(fā)送到其他地方,但您的應(yīng)用程序?qū)⒂肋h無法恢復.使用此類工具您唯一能做的就是重新啟動它.

                Native crash: usually a segfault, a low level crash that you cannot really do anything. That's what you see on your Play store tab, native crash/art. None of the traceback will talk to you, as you'll see the C trace of your Python interpreter and all the others threads. The user can see a "The application XXX suddenly exited" or something like that. There is tools available to display nicer message in case of a native crash and send it somewhere else, but your application will never recover. The only thing you can do with such tools is to restart it.

                Python 崩潰:好消息,您可以捕獲它們并進行可理解的回溯.我建議您查看 Sentry.它是開源的,您可以在您的服務(wù)器上安裝哨兵,當您的應(yīng)用程序發(fā)生錯誤時,您可以將完整的回溯發(fā)送到您的哨兵安裝.很有用.

                Python crash: good news, you can catch them and have comprehensible traceback. I suggest you to look into Sentry. It's opensource, you can install sentry on your server, and when something bad happen in your app, you can send the full traceback to your sentry installation. Very useful.

                集成到 Kivy 也很簡單:

                The integration into Kivy is also very simple:

                if __name__ == "__main__":
                    import traceback
                    from raven import Client
                    client = Client('requests+http://XXKEYXX@sentry.yourserver.com/sentry/1')
                    try:
                        YourApp().run()
                    except:
                        traceback.print_exc()
                        ident = client.get_ident(client.captureException())
                        print "Exception caught; reference is %s" % ident
                

                不要忘記在 Android 中擁有 INTERNET 權(quán)限.如果沒有互聯(lián)網(wǎng),它會在控制臺上失敗兩次.但僅此而已.

                Don't forget to have the INTERNET permission in Android. If there is no internet, it will fail twice on the console. But that's all.

                此外,您可能希望將其插入 Kivy 的 ExceptionManager.如果異常發(fā)生在主循環(huán)中,那么您有可能捕獲它而不退出應(yīng)用程序(忽略異常).當心你是否正在做一些重要的事情:D

                Also, you might want to plug that into the Kivy's ExceptionManager. If the exception happen in the main loop, then you have the possibility to catch it and not quit the app (ignore the exception). Beware if you were doing something important :D

                這篇關(guān)于如何捕獲 kivy-client 崩潰日志并將其發(fā)送到我的服務(wù)器?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                CLLocation returning negative speed(CLLocation 返回負速度)
                How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數(shù)據(jù)中的位置?)
              • <i id='jYj0s'><tr id='jYj0s'><dt id='jYj0s'><q id='jYj0s'><span id='jYj0s'><b id='jYj0s'><form id='jYj0s'><ins id='jYj0s'></ins><ul id='jYj0s'></ul><sub id='jYj0s'></sub></form><legend id='jYj0s'></legend><bdo id='jYj0s'><pre id='jYj0s'><center id='jYj0s'></center></pre></bdo></b><th id='jYj0s'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jYj0s'><tfoot id='jYj0s'></tfoot><dl id='jYj0s'><fieldset id='jYj0s'></fieldset></dl></div>

                <tfoot id='jYj0s'></tfoot>

                <small id='jYj0s'></small><noframes id='jYj0s'>

                  <tbody id='jYj0s'></tbody>
                <legend id='jYj0s'><style id='jYj0s'><dir id='jYj0s'><q id='jYj0s'></q></dir></style></legend>
                  • <bdo id='jYj0s'></bdo><ul id='jYj0s'></ul>

                        • 主站蜘蛛池模板: 久久高清精品 | 欧美激情一区二区三区 | 日韩a在线 | 黄色网址大全在线观看 | 天堂网avav| 国产精品欧美精品日韩精品 | 18性欧美 | 九色综合网 | 97精品超碰一区二区三区 | 激情欧美一区二区三区中文字幕 | 国产精品国产精品国产专区不蜜 | 一区二区免费高清视频 | 成人午夜激情 | 国产高清av免费观看 | 国产成人免费视频网站视频社区 | 欧美日韩在线观看一区 | 午夜视频在线免费观看 | 成人老司机 | 欧美国产日韩一区二区三区 | 久久久久成人精品免费播放动漫 | 午夜av电影 | 中文字幕在线一区 | 三级黄色片在线 | 久久综合久久自在自线精品自 | 中文字幕 亚洲一区 | 日韩免费网站 | 欧洲在线视频 | 欧美日韩综合视频 | 欧美精品成人影院 | 国产欧美日韩综合精品一区二区 | 99re热这里只有精品视频 | 91精品国产美女在线观看 | 麻豆国产一区二区三区四区 | 午夜国产一区 | av在线免费网 | 一区二区三区在线播放视频 | 精品av久久久久电影 | 亚洲综合在线网 | 色天天综合| 日韩视频在线播放 | 男女久久久 |