Open darren4qyl opened 7 months ago
settings show target.max-string-summary-length target.max-string-summary-length (int) = 10000 p sql (const std::string &) "select id,occured_cnt from event_info where event_id = 'xxxxxxxx' and version_id = '1' and (param_list like '{\"crash/_signal\":%,\"digest\":\"%e%c%b%f%f%d%e%ae\",\"error/_code\":%,\"process/_name\":\"//system//bin//surfaceflinger\",\"stack/trace\":\"backtrace:\n #% pc %e% //apex//com.android.runtime//lib%//bionic//libc.so (//_epoll/_pwait+%) (BuildId: %ea%a%e%e%a%a%d%b%c%)\n #% pc % //system//lib%//libutils.so (android::Looper::pollInner(int)+%) (BuildId: c%f%ebcd%c%d%c%c%ed%b%)\n #% pc %c //system//lib%//libutils.so (android::Looper::pollOnce(int, int, int, void**)+%) (BuildId: c%f%ebcd%c%d%c%c%ed%b%)\n #% pc % //system//bin//surfaceflinger (android::impl::MessageQueue::waitMessage()+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\n #% pc %af% //system//bin//surfaceflinger (android::SurfaceFlinger::run()+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\n #% pc %ea% //system//bin//surfaceflinger (main+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\n #% pc %dc //apex//com.android.runtime//lib%//bionic//libc"...
But it did take effect in the LLDB command line, and the content of the variable could be displayed completely.
frame #15: 0x000000784d44490c libsqlite.so`sqlite3_exec(db=0xb4000077292d81b0, zSql="select id,occured_cnt from event_info where event_id = 'xxxxxxxx' and version_id = '1' and (param_list like '{\"crash/_signal\":%,\"digest\":\"a%d%a%a%c%fd%b%a%c%c\",\"error/_code\":%,\"process/_name\":\"//system//bin//surfaceflinger\",\"stack/_trace\":\"backtrace:\\n #% pc %e% //apex//com.android.runtime//lib%//bionic//libc.so (/_/_epoll/_pwait+%) (BuildId: %ea%a%e%e%a%a%d%b%c%)\\n #% pc % //system//lib%//libutils.so (android::Looper::pollInner(int)+%) (BuildId: c%f%ebcd%c%d%c%c%ed%b%)\\n #% pc %c //system//lib%//libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+%) (BuildId: c%f%ebcd%c%d%c%c%ed%b%)\\n #% pc % //system//bin//surfaceflinger (android::impl::MessageQueue::waitMessage()+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\\n #% pc %af% //system//bin//surfaceflinger (android::SurfaceFlinger::run()+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\\n #% pc %ea% //system//bin//surfaceflinger (main+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\\n #% pc %dc //apex//com.android.runtime//lib%//bionic//libc.so (/_/_libc/_init+%) (BuildId: %ea%a%e%e%a%a%d%b%c%)\\n\\n\",\"thread/_name\":\"surfaceflinger\"}' or param_list like '%a3d79a8703156a3749c4fd2b5a212c4c%') limit 1", xCallback=(misight`micar::MiSight::SqlDatabase::GetExecResult(void*, int, char**, char**) at sql_database.cpp:123), pArg=0xb4000076a92d6928, pzErrMsg=0x00000075b8f8d150) at sqlite3.c:123194:12
it seems https://github.com/vadimcn/codelldb/commit/64473d39655206b80fc184e05e4d32c0d736c37a#diff-a206350b29a3fcdea4133c30f0cfd736c645b5ccdc0565011be3d248292acc0aR17 fixed this issue, but not released yet.
settings show target.max-string-summary-length target.max-string-summary-length (int) = 10000 p sql (const std::string &) "select id,occured_cnt from event_info where event_id = 'xxxxxxxx' and version_id = '1' and (param_list like '{\"crash/_signal\":%,\"digest\":\"%e%c%b%f%f%d%e%ae\",\"error/_code\":%,\"process/_name\":\"//system//bin//surfaceflinger\",\"stack/trace\":\"backtrace:\n #% pc %e% //apex//com.android.runtime//lib%//bionic//libc.so (//_epoll/_pwait+%) (BuildId: %ea%a%e%e%a%a%d%b%c%)\n #% pc % //system//lib%//libutils.so (android::Looper::pollInner(int)+%) (BuildId: c%f%ebcd%c%d%c%c%ed%b%)\n #% pc %c //system//lib%//libutils.so (android::Looper::pollOnce(int, int, int, void**)+%) (BuildId: c%f%ebcd%c%d%c%c%ed%b%)\n #% pc % //system//bin//surfaceflinger (android::impl::MessageQueue::waitMessage()+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\n #% pc %af% //system//bin//surfaceflinger (android::SurfaceFlinger::run()+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\n #% pc %ea% //system//bin//surfaceflinger (main+%) (BuildId: %dadaaa%d%c%b%e%b%aa%b%)\n #% pc %dc //apex//com.android.runtime//lib%//bionic//libc"...
But it did take effect in the LLDB command line, and the content of the variable could be displayed completely.