-
Notifications
You must be signed in to change notification settings - Fork 0
/
solaris_dbx
47 lines (29 loc) · 1.1 KB
/
solaris_dbx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## Debugging with dBX..
stop at Main.java:20
stop at "full path.../Hec_zread.c:23"
stop at /...../heclib/javaHeclib/source/Hec_ztsStore.c:64
stop at /...../heclib/heclib/Dss7/System/zswap.c:73
next (step over line)
stepi (step into method)
step up (step ou)
whereami
list
jon (swtich from native to java)
joff (switch back to native)
jpkgs
print variable # print variable/evaluate
where # show stack
\
/usr/openwin/bin/xterm &
/opt/developerstudio12.6/bin/dbxtool
javac -g -cp ${JARS}:. Main.java hec/heclib/dss/*.java
# startup java for Debugging
# -Djava.compiler=NONE disables JIT (disable optimization)
export LD_LIBRARY_PATH=${HECLIB7}/javaHeclib/Output
export CLASSPATH=.:${JARS}
#export PATH=${HECLIB7}/javaHeclib/Output:${PATH}
#java -Djava.library.path=${HECLIB7}/javaHeclib/Output -Djava.compiler=NONE -Xdebug -Xnoagent -Xrundbx_agent -cp .:${JARS} Main
#export jvm_invocation="./go -J-Xdebug -J-d64"
#https://docs.oracle.com/cd/E18659_01/html/821-1380/bland.html#scrolltoc
jvm_invocation="java -Xdebug -J-Djava.library.path=${HECLIB7}/javaHeclib/Output -d64 "
dbx Main.class