XDebug or Zend Debugger?

Zend debugger is only available in binary format, so you need to be careful to download the right version to match your version of php ( http://downloads.zend.com/pdt/server-debugger/ ). I was able to get it working with Eclipse PDT and do line-by-line debugging with a local XAMPP installation. I think Zend has some additional features, but … Read more

Jupyter notebook never finishes processing using multiprocessing (Python 3)

It seems that the problem in Jupyter notebook as in different ide is the design feature. Therefore, we have to write the function (prime_factor) into a different file and import the module. Furthermore, we have to take care of the adjustments. For example, in my case, I have coded the function into a file known … Read more

How to use pg_stat_activity?

See this closely related answer for question “Postgres Query execution time”. pg_stat_activity is a view in the pg_catalog schema. You can query it by SELECTing from it like any other table, e.g. SELECT * FROM pg_stat_activity. The manual page you linked to explains its columns. You’ll sometimes find yourself wanting to join on other tables … Read more

How is Linux kernel live debugging done and what tools are used?

Another option is to use an ICE or JTAG controller, and GDB. This ‘hardware’ solution is especially used with embedded systems. But for instance QEMU offers similar features: start QEMU with a GDB ‘remote’ stub which listens on ‘localhost:1234’ : qemu -s …, then with GDB, you open the kernel file vmlinux compiled with debug … Read more

How to debug a Gulp task?

With Node.js version 6.3+ you can use the –inspect flag when running your task. To debug a gulp task named css: Find out where your gulp executable lives. If gulp is installed locally, this will be at node_modules/.bin/gulp. If gulp is installed globally, run which gulp (Linux/Mac) or where gulp (Windows) in a terminal to … Read more

Debugging a service

Here’s what you can do in four steps: First: In the first interesting method of your service (I used on create): /* (non-Javadoc) * @see android.app.Service#onCreate() */ @Override public void onCreate() { super.onCreate(); //whatever else you have to to here… android.os.Debug.waitForDebugger(); // this line is key } Second: Set break points anywhere after the waitForDebugger … Read more

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