Skip to content

Commit 7fb08da

Browse files
committed
Merge branch 'features_v3.0'
1 parent f696bd6 commit 7fb08da

22 files changed

+2468
-773
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ node_modules
99
test/multiple-clients-test.js
1010

1111
test/manual-test.js
12+
13+
.DS_Store
14+
15+
.project
16+
mocha-eclipse.js

debug.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
start node-inspector
2+
start mocha --debug-brk -R spec %1%

debug.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/sh
2+
#set -x
3+
# find existing web inspector
4+
5+
6+
killprocess(){
7+
8+
echo ps -ef | awk "!/awk/ && /$1/ {print $2}"
9+
#pid=`ps -ef | awk -v keyword=$1 "!/awk/ && /${keyword}/ {print $2}"`;
10+
pid=`ps -ef | awk -v a=node-inspector '!/awk/ && /${a}/ {print $2}'`;
11+
echo current $1 process is $pid;
12+
13+
if [ -n '$pid' ]
14+
then
15+
echo killing $1 process $pid;
16+
#kill $pid;
17+
18+
else
19+
echo $1 is not active;
20+
21+
fi
22+
}
23+
24+
25+
26+
27+
killprocess node-inspector
28+
killprocess mocha
29+
30+
echo launching node-inspector
31+
node-inspector &
32+
33+
echo launching test $1
34+
mocha --debug-brk -R spec $1 &
35+
36+

0 commit comments

Comments
 (0)