开发者

Change NetBeans Debugger Command

开发者 https://www.devze.com 2023-03-05 06:12 出处:网络
I have a .gdbinit file to set the solib-absolute-prefix and solib-search-path when attaching a debugger from NetBeans. I\'ve turned on the debugger console (by adding -J-Dgdb.console.window=true to ne

I have a .gdbinit file to set the solib-absolute-prefix and solib-search-path when attaching a debugger from NetBeans. I've turned on the debugger console (by adding -J-Dgdb.console.window=true to netbeans_default_options in /usr/开发者_开发百科share/netbeans/6.9/etc/netbeans.conf) and it tells me:

Debugger Command: [/path/to/gdb, -nx, --nw, --silent, --interpreter=mi]

The -nx is preventing it from loading my .gdbinit file.

Is there any way in NetBeans to either (1) remove -nx from that command, (2) specify a .gdbinit file to load with gdb, or (3) specify library search paths explicitly?


Never mind, you can add -J-Dgdb.init.enable=trueto netbeans_default_options in /usr/share/netbeans/6.9/etc/netbeans.conf and it will load the .gdbinit file.

0

精彩评论

暂无评论...
验证码 换一张
取 消