Remove debug symbols

Sysprogs forums Forums VisualGDB Remove debug symbols

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35851
    lashmuelE
    Participant

    Hello,
    I’m using VisualGDB version 5.6 in Visual Studio 2017
    How can i remove the debug symbols from build?
    In Win32 platform i select None in “C/C++->General->Debug information Format”. no such value in VisualGDB platform for this field.

    Also in Linker->Debugging->Generate Debug Info i also select the No option but no such field in VisualGDB
    Best regards
    Shmuel

    #35852
    bflannery
    Participant

    I would probably just add a post build action for the release target to run “strip –strip-debug” on the produced executable.

    or

    You could pass “-Wl,–strip-debug” into the linker for your release target.

    #35853
    support
    Keymaster

    Hi,

    The VisualGDB setting for removing the debug info would be Linker->Advanced->Strip Debug Information. It enables the “-Wl,–strip-debug” option mentioned by @bflannery.

    But you can also add a post-build step for stripping it, moving it to a separate symbol file as shown here.

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