Is it possible to get a core dump of a running process and its symbol table?
$ gdb –pid=26426 (gdb) gcore Saved corefile core.26426 (gdb) detach
$ gdb –pid=26426 (gdb) gcore Saved corefile core.26426 (gdb) detach
First enable Automatically send some system information and page content to Google to help detect dangerous apps and sites from Settings –>> Advanced –>> Privacy and Security then enable Crash reporting in Chrome as below Open chrome://crashes If it shows crash report as disabled, enable it. If crash happens it will dump the crash report … Read more
Content scripts’ console.log messages are shown in the web page’s console instead of the background page’s inspector. Adding debugger; works if the Developer Tool (for the web page where your content script is injected) is opened. Therefore, in this case, you should first activate the Developer Tool (of the web page) before clicking the browser … Read more
Try to start Visual Studio under administration account by choosing Run as administrator.
Use LOCAL_PATH := $(call my-dir) $(warning $(LOCAL_PATH))
The right way to set watchpoint on address is watch *0x10793ad0. See gdb doc
Analyze the problem in a pair and pair-read the code. Make notes of the problems you KNOW to be true and try to assert which logical preconditions must hold true for this happen. Follow the evidence like a CSI. Most people instinctively say “add more logging”, and this may be a solution. But for a … Read more
Language Different programming languages will have their own flavour of bugs. C Adding debug statements can make the problem impossible to duplicate because the debug statement itself shifts pointers far enough to avoid a SEGFAULT—also known as Heisenbugs. Pointer issues are arduous to track and replicate, but debuggers can help (such as GDB and DDD). … Read more
In Meteor 0.5.4 this has become a lot easier: First run the following commands from the terminal: npm install -g node-inspector node-inspector & export NODE_OPTIONS=’–debug-brk’ meteor And then open http://localhost:8080 in your browser to view the node-inspector console. Update Since Meteor 1.0 you can just type meteor debug which is essentially a shortcut for the … Read more
cargo rustc –profile=check — -Zunpretty=expanded, but a more concise alternative is the cargo-expand crate. It provides a Cargo subcommand cargo expand which prints the result of macro expansion. It also passes the expanded code through rustfmt which generally results in much more readable code than the default output from rustc. Install by running cargo install … Read more