Archive | January, 2012

How to debug Android program.

How to debug android program

  1. Go to Run -> debug configuration. Select your application and press debug.
  2. [or] you can right click on your project -> debug as -> Android application.
  3. Before running in debug mode, set break points where all it may be needed for your code. To set break points, go to the line where you need to set the break point, double click on that line -> it will show you blue ball. Once you see that blue ball on that line, it means break point has been set for you.
  4. Once you start debugging, the emulator may show a window showing “waiting for debug to progress” and it may opt you to force close.
  5. Don’t click on force close button. As it will lead to end of your application. Wait for that window get closed automatically by itself
  6. Then your eclipse will get control and will ask you to switch the perspective view of your eclipse editor, so press yes to start debugging.
  7. Once you press yes, it will open debugging mode screen of eclipse.
  8. If you want to run step by step use F6 button
  9. If you want to skip to next debugging point press F8 button.

Posted in Misc0 Comments

Types of JIT Compilers in .NET

There are 3 types of .Net Compilers present in .Net Framework.

  • Pre-JIT (Compiles entire code into native code at one stretch . In .Net it is called as Ngen.exe)
  • Econo-JIT (Compiles code part by part and will be removed once method execution is completed)
  • Normal JIT (Compiles only that part of code when called and places in cache)

Posted in .NET Framework FAQ0 Comments