What would be the best way to debug multi-process code (i.e. processes where parent process spawns multiple child daemon processes). So far I have been doing -
Make sure the program runs fine in single process mode.
After that turn on logging mechanism & try to figure out what might be going on in the logs etc...
Are there any bette...
I'd like to realease a Java application in debug mode to allow for easier debugging when random or hard to reproduce problems occur on the customer side.
However, I want to get a heads up on potential side effects of doing this? From the Java HotSpot Documentation it seems that there should be no performance penalty.
From the link
...
What are some of the common Javascript and/or jQuery "gotchas" that you have seen or been tripped up by?
As an example, it was pointed out to me this morning that you have to be careful with the radix when doing parseInt(), because if your string starts with a 0, the radix will default to 8.
...
I noted this syntax listed as a gotchya but with no explanation as to why:
def func(x=None):
#good
if x == None:
x = []
#bad
x = x or []
In what ways can this be a gotchya?
...