Tags » Debug

KSP TIPS wip

How to get to the debug menu– it has cheats and debug stuff.  Press right Alt and F12 to get to it.

How to get into orbit– 13 more words

Cheats

ESP8266-EVB support for JTAG development with flash load, breakpoints, disassembly, step debugging in Visual Studio C/C++

Ivan Shcherbakov @SysProgs shared interesting article. He wrote support for ESP8266-EVB to VisualGDB Visual Studio plugin for embedded software development in C/C++.

With this plugin you can use JTAG to debug code in ESP8266, also to set breakpoints, view the disassembled code etc. 9 more words

Tutorial

JavaScript : jQuery : Best way to add Event Handlers makes debuging easy

I work on Rails project with 20+ javascript files. I even have implement the Javascript/script response using the js.erb template. Also, I am using… 117 more words

Jquery

Penggunaan Var_dump alternatif

Di laravel ada fungsi dd yang fungsinya hampir sama dengan var_dump. Sekarang kita coba membuat fungsi var_dump namun kita modifikasi sedikit saja. Langsung saja:



function prettyPrint($json) {
 $result = '
<pre>';
 $level = 0;
 $in_quotes = false;
 $in_escape = false;
 $ends_line_level = NULL;
 $json_length = strlen($json);

 for ($i = 0; $i < $json_length; $i++) {
 $char = $json[$i];
 $new_line_level = NULL;
 $post = "";
 if ($ends_line_level !== NULL) {
 $new_line_level = $ends_line_level;
 $ends_line_level = NULL;
 }
 if ($in_escape) {
 $in_escape = false;
 } else if ($char === '"') {
 $in_quotes = !$in_quotes;
 } else if (!$in_quotes) {
 switch ($char) {
 case '}': case ']':
 $level--;
 $ends_line_level = NULL;
 $new_line_level = $level;
 break;

 case '{': case '[':
 $level++;
 case ',':
 $ends_line_level = $level;
 break;

 case ':':
 $post = " ";
 break;

 case " ": case "\t": case "\n": case "\r":
 $char = "";
 $ends_line_level = $new_line_level;
 $new_line_level = NULL;
 break;
 }
 } else if ($char === '\\') {
 $in_escape = true;
 }
 if ($new_line_level !== NULL) {
 $result .= "\n" . 416 more words
PHP

If you liked YUMEX, don't miss YUM EXTENDER (DNF) for Fedora 22

If you are one of them (like me) that prefer to manage and/or install software through an easy to use GUI, don’t forget to migrate to the new version of the “old” YUMEX. 27 more words

Linux

android: binder: kernel panic: binder_get_ref

This post is to discuss debugging kernel panic at binder_get_ref. The reference source code here is qualcomm msm kernel release 3.4.0.

[  638.949732] c1    936 Unable to handle kernel paging request at virtual address e714c805
[  638.949732] c1    936 pgd = dd99c000
[  638.949763] c1    936  *pgd=9f075811, *pte=00000000, *ppte=00000000
[  638.949763] c1    936 DFSR=00000007, TTBCR=00000000, TTBR0=9e39c06a, TTBR1=8060406a
[  638.949763] c1    936 MAIR0=ff0881a8, MAIR1=40e040e0, SCTLR=10c5787d
[  638.949793] c1    936 Internal error: Oops: 7 [#1] PREEMPT SMP ARM
[  638.949793] c1    936 Modules linked in: bcmdhd dm_crypt(O) moc_crypto(PO) moc_platform_mod(O)
[  638.949824] c1    936 CPU: 1    Tainted: P        W  O  (3.4.10-gc50a6b2 #1)
[  638.949854] c1    936 PC is at binder_get_ref+0x8/0x34
[  638.949854] c1    936 LR is at binder_transaction_buffer_release+0x190/0x340
[  638.949854] c1    936 pc : [<c050c304>]    lr : [<c050e48c>]    psr: a0000013
[  638.949854] c1    936 sp : dae7ddd8  ip : 766045f4  fp : 000001cc
[  638.949885] c1    936 r10: 00000000  r9 : dc3e6400  r8 : 00000068
[  638.949885] c1    936 r7 : eb000288  r6 : c0cf22f8  r5 : 0001734e  r4 : eb000220
[  638.949885] c1    936 r3 : e714c7dd  r2 : 000001cb  r1 : 000001cc  r0 : da231580
…
[  638.952601] c1    936 Process Binder_4 (pid: 936, stack limit = 0xdae7c2f8)
…
[  638.952815] c1    936 [<c050c304>] (binder_get_ref+0x8/0x34) from [<c050e48c>] (binder_transaction_buffer_release+0x190/0x340)
[  638.952845] c1    936 [<c050e48c>] (binder_transaction_buffer_release+0x190/0x340) from [<c050fb1c>] (binder_thread_write+0x620/0x1f7c)
[  638.952845] c1    936 [<c050fb1c>] (binder_thread_write+0x620/0x1f7c) from [<c0512238>] (binder_ioctl+0x1d4/0x588)
[  638.952876] c1    936 [<c0512238>] (binder_ioctl+0x1d4/0x588) from [<c014d2cc>] (do_vfs_ioctl+0x4d8/0x54c)
[  638.952876] c1    936 [<c014d2cc>] (do_vfs_ioctl+0x4d8/0x54c) from [<c014d374>] (sys_ioctl+0x34/0x54)
[  638.952906] c1    936 [<c014d374>] (sys_ioctl+0x34/0x54) from [<c000e480>] (ret_fast_syscall+0x0/0x30)
[  638.952906] c1    936 Code: e1a00003 e12fff1e e5903010 ea000006 (e5932028) 
[  638.952937] c1    936 ---[ end trace 3d62df4cc805c0c7 ]---
[  638.952968] c1    936 Kernel panic - not syncing: Binder_4 PC:binder_get_ref+0x8/0x34 LR:binder_transaction_buffer_release+0x190/0x340
… 662 more words
Linux Kernel