Android app crashes when launched in debug mode

For me, it occurred when I have a breakpoint in a nested function. In my case, it was within Runnable.run() {}. Not sure if it happens in other nested functions. Example: public class TouchEvent { public boolean HandleEvent(MotionEvent Event) { new Runnable() { @Override public void run() { int i=5; i++; }}; } } If … Read more

Release generating .pdb files, why?

Because without the PDB files, it would be impossible to debug a “Release” build by anything other than address-level debugging. Optimizations really do a number on your code, making it very difficult to find the culprit if something goes wrong (say, an exception is thrown). Even setting breakpoints is extremely difficult, because lines of source … Read more

How can I debug javascript on Android?

Update: Remote Debugging Previously, console logging was the best option for debugging JavaScript on Android. These days with Chrome for Android remote debugging, we are able to make use of all the goodness of the Chrome for Desktop Developer Tools on Android. Check out https://developers.google.com/chrome-developer-tools/docs/remote-debugging for more information. Update: JavaScript Console You can also navigate … Read more

Where does VBA Debug.Print log to?

Where do you want to see the output? Messages being output via Debug.Print will be displayed in the immediate window which you can open by pressing Ctrl+G. You can also Activate the so called Immediate Window by clicking View -> Immediate Window on the VBE toolbar

How to quickly and conveniently disable all console.log statements in my code?

Redefine the console.log function in your script. console.log = function() {} That’s it, no more messages to console. EDIT: Expanding on Cide’s idea. A custom logger which you can use to toggle logging on/off from your code. From my Firefox console: var logger = function() { var oldConsoleLog = null; var pub = {}; pub.enableLogger … Read more

Easier way to debug a Windows service

If I want to quickly debug the service, I just drop in a Debugger.Break() in there. When that line is reached, it will drop me back to VS. Don’t forget to remove that line when you are done. UPDATE: As an alternative to #if DEBUG pragmas, you can also use Conditional(“DEBUG_SERVICE”) attribute. [Conditional(“DEBUG_SERVICE”)] private static … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)