User forums > Using Code::Blocks

remote ip in cb project file

<< < (2/3) > >>

MortenMacFly:

--- Quote from: renega_666 on August 29, 2012, 06:04:38 pm ---Isn't there any way to specify the remote ip as a global IDE settings?

--- End quote ---
Why don't you use a macro / global compiler variable / environment variable for that purpose? All three solutions should work and are not saved inside the project file.

zabzonk:

--- Quote ---I thought about it but how would you make cb aware of this file?

--- End quote ---

Why would CB need to be aware of it? It's your code that needs to know about it.

renega_666:

--- Quote ---Why don't you use a macro / global compiler variable / environment variable for that purpose? All three solutions should work and are not saved inside the project file.
--- End quote ---

I tried to use a global compiler variable but cb didn't detect it (I'm using a lot of other global compiler variables in the project without any problems). I will have to investigate it a little further tomorrow morning.


--- Quote ---Why would CB need to be aware of it? It's your code that needs to know about it.
--- End quote ---

I don't understand. Why does my source code have to know about how I'm going to debug it? I'm talking about the ip adress for remote debugging from codeblocks.

dmoore:

--- Quote from: renega_666 on August 29, 2012, 08:49:07 pm ---
--- Quote ---Why don't you use a macro / global compiler variable / environment variable for that purpose? All three solutions should work and are not saved inside the project file.
--- End quote ---

I tried to use a global compiler variable but cb didn't detect it (I'm using a lot of other global compiler variables in the project without any problems). I will have to investigate it a little further tomorrow morning.

--- End quote ---

What you haven't stated, which is perhaps what some of the replies have missed, is whether you are setting the IP in "Project->Properties->Debugger". I expect that specifying an environment var or global var in that textcontrol won't get a variable substitution. There may be a workaround or a simple fix we can make, but I'm not all that familiar with that part of the code base, so don't have immediate suggestions.

renega_666:

--- Quote ---What you haven't stated, which is perhaps what some of the replies have missed, is whether you are setting the IP in "Project->Properties->Debugger".
--- End quote ---

Yes that's exactly what I do. I should have said that, my bad.


--- Quote ---There may be a workaround or a simple fix we can make, but I'm not all that familiar with that part of the code base, so don't have immediate suggestions.
--- End quote ---

Ok.

Thank you everyone for your answers!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version