This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Debugger (gdb, mingw, msys2) using mixed development in netbeans is not hiting breakpoints in c/c++ code. When i go to debug a native method, a message like : Can not find native process using grep by .*java.+:-1.* Inside ClassLoder.class, in findNative method, the variable libs has this message: Variable information is not available, source compiled without -g option. Value of "libs" is not known. the code about: package nativemessager; /** * * @author Julio */ public class NativeMessager { private native String getLine(String message); static{ System.loadLibrary("libgetline"); } /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println(new NativeMessager().getLine("this is a jni message.")); } } native code: #include <iostream> #include "NativeMessager.h" jstring JNICALL Java_nativemessager_NativeMessager_getLine (JNIEnv * env, jobject object, jstring message) { const char* str; str = env->GetStringUTFChars(message, NULL); env->ReleaseStringUTFChars(message, str); std::cout << str << std::endl; return message; }
I see same bug on my MSYS2 machine (Windows 8.1).
Most likely this will be fixed in next release. As far as I remember we had difficulties on Windows. I would recommend you to try cygwin, by the way. But I'm not sure if it'll work :(