how to access Angular2 component specific data in console?

update 4.0.0 StackBlitz example update RC.1 Plunker example In the browser console on the top-left (filter symbol) select plunkerPreviewTarget (or launch the demo app in its own window) then enter for example Select a component in the DOM node and execute in the console ng.probe($0); or for IE – thanks to Kris Hollenbeck (see comments) … Read more

What is the proper name for doing debugging by adding ‘print’ statements [closed]

Yes – it’s known as printf() debugging, named after the ubiquitous C function: Used to describe debugging work done by inserting commands that output more or less carefully chosen status information at key points in the program flow, observing that information and deducing what’s wrong based on that information. — printf() debugging@everything2 Native users of … Read more

Debug Gradle plugins with IntelliJ

I was able to debug gradle sources (including plugins) using -Dorg.gradle.debug=true (found on gradle forum): Stop daemons if any: ./gradlew –stop Run ./gradlew <task> –no-daemon -Dorg.gradle.debug=true Connect remotely to gradle process (port 5005) – if using IntelliJ IDEA, see OP’s image above It should stop on breakpoints now. BTW, I have created a separate IntelliJ … Read more

What flags do you set for your GFORTRAN debugger/compiler to catch faulty code?

Bare minimum -Og/-O0 -O0 basically tells the compiler to make no optimisations. Optimiser can remove some local variables, merge some code blocks, etc. and as an outcome it can make debugging unpredictable. The price for -O0 option is very slow code execution, but starting from version 4.8 GCC compilers (including the Fortran one) accept a … Read more