make debug writable path the same as release
Merge pull request #7913 from chuanweizhang2013/v3fixed

make debug writable path the same as release