How to get more info when the “Aw Snap” screen shows up in Chrome?

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

Debugging Content Scripts for Chrome Extension

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

How do you fix a bug you can’t replicate?

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

Meteor: Debug on server side

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

How do I see the expanded macro code that’s causing my compile error?

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