PixInsight.sh is a shell script (executable text file) that sets a couple of environment variables. The real binary is PixInsight. If you try to start PixInsight directly, you get those messages about missing libraries because LD_LIBRARY_PATH is not correctly set.
Apparently NetBeans cannot handle the shell script and follow it into the actual binary -other environment can. To get it running with Netbeans, you probably need to do this:
1. set environment variables as described in PixInsight.sh, using command like export LD_LIBRARY_PATH=value (bash) or setenv (csh)
2. Start netbeans
3. Try to debug
I dont know netbeans myself, so I am not sure if there is a more elegent way. But in theory, this should do the trick.
Geirg