{"id":2493,"date":"2018-02-21T22:13:32","date_gmt":"2018-02-21T16:43:32","guid":{"rendered":"http:\/\/localhost:8081\/system-on-module-som\/?p=2493"},"modified":"2025-03-25T19:05:49","modified_gmt":"2025-03-25T13:35:49","slug":"qt-creator-remote-debugging-2","status":"publish","type":"post","link":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/qt-creator-remote-debugging-2\/","title":{"rendered":"Qt Creator Remote Debugging"},"content":{"rendered":"<p>Remote debugging is identifying and removing errors from the application running on a device from another device. The Qt application once deployed on the <a href=\"https:\/\/www.e-consystems.com\/iMX6-micro-som-system-on-module.asp\">eSOMiMX6<\/a> device(s) can be debugged from any remote system. Qt Creator provides very easy access to remote debugging. It provides a Debug mode to inspect the state of the application while debugging.<\/p>\n<p>In general, the remote debugging setup consists of a probe running on the remote machine and a counterpart running on the host side. When debugging on a target supported by GDB server, a local GDB process talks to a GDB server running on the remote machine that controls the process to be debugged. While this setup might look daunting, it is mostly invisible to the user of Qt Creator.<\/p>\n<p>This article guides you to debug your Qt application running on <a href=\"https:\/\/www.e-consystems.com\/iMX6-micro-som-system-on-module.asp\">eSOMiMX6<\/a>.<\/p>\n<p>Qt Creator provides a Debug mode to inspect the state of the application while debugging.<\/p>\n<ul>\n<li>Execute the following command to start the gdbserver on the <a href=\"https:\/\/www.e-consystems.com\/iMX6-micro-som-system-on-module.asp\">eSOMiMX6<\/a> device(s).<\/li>\n<\/ul>\n<blockquote><p>\u00a0Gdbserver [IP-of-host-PC]:[port-number-between-10000-10100] [application-executable-path]<\/p><\/blockquote>\n<ul>\n<li>Select Attach to Running Debug Server under Debug menu item.<\/li>\n<li>Enter your kit name, the port you have entered in step 1, the IP address of the <a href=\"https:\/\/www.e-consystems.com\/iMX6-micro-som-system-on-module.asp\">eSOMiMX6<\/a> device, application executable on PC, working directory(path of source code) and enable break at main.<\/li>\n<li>Click OK and debugging starts from that point.<\/li>\n<\/ul>\n<p>Please refer our previous articles on <a href=\"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/getting-started-with-qt-creator-on-esomimx6\/\">How to setup Qt creator for eSOMiMX6 devices<\/a> and <a href=\"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/build-deploy-and-run-qt-application-on-esomimx6\/\">How to build, deploy and run Qt applications on eSOMiMX6 devices<\/a> to build and run the application on eSOMiMX6 devices. Please visit the <a href=\"https:\/\/developer.e-consystems.com\/\">developer site<\/a> to know more about remote debugging of Qt applications running on <a href=\"https:\/\/www.e-consystems.com\/iMX6-micro-som-system-on-module.asp\">eSOMiMX6<\/a> from your Linux PC.<\/p>\n<p>For further assistance and queries get in touch with <a href=\"mailto:sales@e-consystems.com\">sales@e-consystems.com<\/a><\/p>\n<p><!--Try eSOM++ remote debugging on eSOMiMX6\n\n<a href=\"https:\/\/developer.e-consystems.com\/downloads?key=ehxs6scps08yz6fwgn2e2846fogxha2gsaukfj7yzgcp7harxvfadsi6%252fyzsjdwkpn2rcg8guswnix86g%252f7sp9rd9mhv0q5kw%252bkp%252fr9xu%252brxjntubmnj%252f1dk4xbrc54ug%252bvfrlhvlgcejainy2x0adjigx55kjsylzcvyajroosmfvgt2bls7szqwptfidpt%252batyorxy0cjkrg1z3j%252fbebms%252f1qp7ieg7w9fe4xjv%252bistfw%252blxzhmci86nblrtgsai00prwbiarljsdsb4960607jadqitu7mlghg7izajvfwxydmz4cqt7ii%252fa%252fg%252bpx\">Qt-QML-Setup-Qt-Creator-Steps Application Guide<\/a>\n\n<a href=\"https:\/\/developer.e-consystems.com\/downloads?key=ehxs6scps08yz6fwgn2e25wyqnmv%252flu%252b8sruzf9xsgsurcony4uqctq%252fccm%252bduqhayyfhxf9aecvti8v%252frv6otxw%252fazxo1e28vglw3loofsxxgvduy31lteu%252fnu7qx2lukw2pvob%252fdyt6tpb%252bckyni24l3jonmitxiooarfqmbnf1jaevyn45yywcfurpy5p3qi8mh33qu4dvwkbqkp9c6uvnscznx91nwk5jreqroha%252bzvqqgthu0br5lyj3on%252feelbuno67jcoyeepboyw%252fq7tfxzvltxodvsh68kll14qemxgturpaylpq3e17o63\">Qt-QML-Build-Deploy-Run-Steps Application Guide<\/a>\n\n<a href=\"https:\/\/developer.e-consystems.com\/downloads?key=69ykfkubx5erk9%252bgndi2wspc1wgkh6jlc72e3bxq3e8o4rpsykdcmeblbtda70i4bb%252fee8uis97inmuskhwriw4tqn2nlkdeefmzelzwmnbz9n5bi%252b2zaffhvvsuxifx7lnjldv39pg745hfd8jr%252f%252bsms6wwgydrukd5fwkltsl5%252f59lhulp%25\">Toolchain Package<\/a>\n\n<a href=\"https:\/\/developer.e-consystems.com\/Downloads?key=6IhRXkwgs7uCB3RInNH0PU4F2sBTQQhEJVf26D83ep3pn6yIdb847KohUMM18dP8G6yRH8ohN%2FvVjSj1L06mzYEOOYPEESxYf6DLoHPmS1LPope29Z0UevaelrYt4Xz9rIdGb%2FsYRZHSFTw6qqlgafbrnQkYpIeVZy7h4QiGZMuG87iVOBKxpwSlt4gCqY%2BbiDF%2Bvx3HqL26oqgiCZ%2B3xHjfzA%2FbXVDxhWJWS9U0iMN%2B9OcAp%2BuvYIBel0k4GGVkxFhAHdGqtCYqN%2Bmr3CVWUln6ReY0mCjTuoaCPR8rE4u5mg2gWAeRn%2F9XoeTr%2F0qk\">Qt-QML-Remote-Debugging-Steps Application Guide<\/a>--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remote debugging is identifying and removing errors from the application running on a device from&#8230;<\/p>\n","protected":false},"author":17,"featured_media":2494,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[213,342,127,340,341],"tags":[251,460,255,196,396,259,121,112,459],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/posts\/2493"}],"collection":[{"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/comments?post=2493"}],"version-history":[{"count":4,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/posts\/2493\/revisions"}],"predecessor-version":[{"id":3056,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/posts\/2493\/revisions\/3056"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/media\/2494"}],"wp:attachment":[{"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/media?parent=2493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/categories?post=2493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/tags?post=2493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}