Run environment variable not used in debug mode

  • From: "luckyvae" < >
  • To:
  • Subject: Run environment variable not used in debug mode
  • Date: Mon, 05 Nov 2012 08:08:09 -0500

Hi everyone,

I'm facing a small problem:

In run mode, i've configured the environment variable in order to modify 
LD_LIBRARY_PATH to be able to locate the library I'm working on. This work 
exactly like I wanted. The only problem is that whenever I try to run it in 
debug mode (with gdb), gdb complains that it can't find my library. I've made 
a small test and it seems that the environment is not the same when a project 
is run and whenever we debug it.

Is it me or did I forgot to do something?

I've made a small reproductible test case that I've joined. It contains a cpp 
file that will execute a small shell script to show the definition of 
LD_LIBRARY_PATH.
If you run it, you should have something that starts with ../
And when you debug the project, you won't have the same values.

Netbeans 7.2
C/C++ plugin version: 1.18.1.1




Attachments: 
http://forums.netbeans.org//files/testtar_187.gz



Run environment variable not used in debug mode

luckyvae 11/05/2012

Re: Run environment variable not used in debug mode

Egor Ushakov 11/08/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close