Variable for user host

Sysprogs forums Forums VisualGDB Variable for user host

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #697
    amirs
    Participant

    We have $(BuildHost) and $(DeployHost) variables

    Can we have also $(UserHost) ?
    Which will translate to the `hostname` shown in “Debug Settings”, which is the windows computer name.

    This way I could change project remote directory on building host to /tmp/VisualGDB/$(UserHost)/$(UserName)/$(ProjectDirUnixStyle)
    or if I have only one user per host, I could just use /tmp/VisualGDB/$(UserHost)/$(ProjectDirUnixStyle)

    What do you think?

    #2839
    ket
    Participant

    Hi,

    Great idea. We will try to add this to our next r release.

    #2840
    amirs
    Participant

    Thanks!

    #2841
    support
    Keymaster

    Hi,

    We looked more into this. Actually, you can simply use the COMPUTERNAME variable that is available on Windows XP and newer versions. Use $(COMPUTERNAME) in your commands in VisualGDB settings.
    Note that you can also use any other environment variables of the current Windows user (if a build variable with the same name exists, it will override the environment variable).

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.