Importing an existing project

E.g. you’re taking over an existing project and want to use NetBeans for it going forwards Follow the instructions on this page, but jumping here once you get to the New NetBeans Project steps. Creating A New NetBeans Project Menu > File > New Project > Select ‘C/C++ Project with Existing Sources’ Selet the folder that […]

Read More

Breakpoints

Delete all breakpoints Menu > Window > Debugging > Breakpoints Then right-click in the Breakpoints window and select Disable All or  "Delete All".

Read More

Troubleshooting

Can't connect via Netbeans See the Troubleshooting Remote Host Connections tips here. Debugging execution allways stops but there's no breakpoint there? Try clearing all breakpoints (there may be old ones pointing to dead code) Menu > Window > Debugging  > Breakpoints.  Right-click in the Breakpoints window and select Disable All. "GDB has unexpectedly stopped with return 1" […]

Read More

Getting the project files

Get the project files from the RPi? To find out where NetBeans copies the files to on the RPi look in the 'Output' window for "Entering directory", e.g.: make[1]: Entering directory '/root/.netbeans/remote/192.168.1.183/dell-m4600-win7-Windows-x86_64/C/_PROJECTS/SomeFolderName/Apps/MyApp/MyAppName' Note that if you look for this location using the GUI file manager you will need to select the menu option View > Show hidden […]

Read More

Adding Libraries

Adding A Library To A NetBeans Project For example the bcm2835 library for the IO pins. Include the library header file #include <bcm2835.h> When you compile you the compiler also needs to include the library so the libraries object file is added to the final compilation. Right click the project > Properties > Build > Linker > In […]

Read More

.Creating A New Project

Compatability We’re still using this in 2023 with NetBeans IDE 11.0 with no problems. See here for the netbeans 11 setup. Enabling Running Remote Projects in NetBeans As Root User By default the root account is disabled in Raspbian, but for an application to access the IO pins it needs root user privileges.  There are ways to […]

Read More