Category Archives: Programming

Setting LD_LIBRARY_PATH in NetBeans Debugger

Currently in the process of taking legacy C++ code into C# with .NET. The legacy code was given to us in a VM with NetBeans powering the project. It currently requires starting the code externally through a terminal, and then attaching the debugger in NetBeans to the running process. Looking into it, the code was missing some LD_LIBRARY_PATH definitions that were set when the external script was run to start the application. Adding these paths into the local debugger would allow NetBeans to debug the application without needing to attach to an already running process.

To set the paths, go to Run > Set Project Configuration > Customize. Go to Run and then click the “…” next to Environment. Add an environment variable named “LD_LIBRARY_PATH” and the path syntax should look like:


notice the “:”s separating each path.

After adding the page should look like:


Rebuild the project and debug!

Selecting Specific Git Branch in Visual Studio 2013

Allegient, my new employer, uses GitLab for source control on the project I am currently engaged on. I’ve primarily been using TFS at my previous position.

Working with a specific branch in Visual Studio 2013 isn’t as intuitive as I expected. Here are the steps I followed to get a specific branch from GitLab (or any Git-based server).

In Visual Studio, open up the Team Explorer tab, and select the Connect icon. Enter the URL of the Git project into the textbox. Select Clone.


The project will pull down into the designated folder. You will notice that the branch you want to work with is missing!

Double click the project that is now listed, which will open up the Home screen for that project. From there click on the Branch dropdown and select New Branch.


The branches for the project are listed in the dropdown. Select the desired branch and click “Create Branch”. As counter-intuitive as this sounds, it simply pulls down the branch to your machine. After it is created you will be able to open the .sln and start developing!