Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to set Debug Info option in vc++6.0 for command line build?

How to set Debug Info option in vc++6.0 for command line build?

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasedebuggingtoolstutorial
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Super Hornet
    wrote on last edited by
    #1

    We are building our system which has hundred's of workspaces for which debug info is not set manually so now for debugging release binaries we are building through batch file which has following script

    Set ReBuild_Required=

    if /I "%1"=="clean" GOTO CLEAN
    if /I "%1"=="clean_only" GOTO CLEAN_ONLY

    Set Config=%1
    if /I "%Config%"=="" Set Config=Release

    GOTO BUILD

    :CLEAN_ONLY
    Set ReBuild_Required=/CLEAN
    GOTO CLEAN_REMAINING

    :CLEAN

    Set ReBuild_Required=/REBUILD

    :CLEAN_REMAINING

    Set Config=%2
    if /I "%Config%"=="" Set Config=Release

    del /Q ..\..\Include\*.*
    del /Q ..\..\..\Common\Include\*.*

    if /I %Config%==Release GOTO CLEAN_RELEASE

    del /Q ..\..\Bin\Debug\*.*
    del /Q ..\..\..\Common\Bin\Debug\*.*

    del /Q ..\..\Lib\*Dbg.Lib
    del /Q ..\..\..\Common\Lib\*Dbg.Lib

    GOTO BUILD

    :CLEAN_RELEASE

    del /Q ..\..\Bin\Release\*.*
    del /Q ..\..\..\Common\Bin\Release\*.*

    ren ..\..\Lib\*Dbg.Lib *Dbg.Tlf
    del /Q ..\..\Lib\*.Lib
    ren ..\..\Lib\*.Tlf *.Lib

    ren ..\..\..\Common\Lib\*Dbg.Lib *Dbg.Tlf
    del /Q ..\..\..\Common\Lib\*.Lib
    ren ..\..\..\Common\Lib\*.Tlf *.Lib

    :BUILD

    Set Proj_Dir=..\..\..\Common\Source\Database

    Set Proj_Name=DBRecall
    MSDEV /USEENV %Proj_Dir%\%Proj_Name%\%Proj_Name%.dsp /MAKE "%Proj_Name% - Win32 %Config%" %ReBuild_Required%
    if %ERRORLEVEL% GEQ 1 GOTO end

    In the above script what changes I need to do inorder to generate debug info??

    S 1 Reply Last reply
    0
    • S Super Hornet

      We are building our system which has hundred's of workspaces for which debug info is not set manually so now for debugging release binaries we are building through batch file which has following script

      Set ReBuild_Required=

      if /I "%1"=="clean" GOTO CLEAN
      if /I "%1"=="clean_only" GOTO CLEAN_ONLY

      Set Config=%1
      if /I "%Config%"=="" Set Config=Release

      GOTO BUILD

      :CLEAN_ONLY
      Set ReBuild_Required=/CLEAN
      GOTO CLEAN_REMAINING

      :CLEAN

      Set ReBuild_Required=/REBUILD

      :CLEAN_REMAINING

      Set Config=%2
      if /I "%Config%"=="" Set Config=Release

      del /Q ..\..\Include\*.*
      del /Q ..\..\..\Common\Include\*.*

      if /I %Config%==Release GOTO CLEAN_RELEASE

      del /Q ..\..\Bin\Debug\*.*
      del /Q ..\..\..\Common\Bin\Debug\*.*

      del /Q ..\..\Lib\*Dbg.Lib
      del /Q ..\..\..\Common\Lib\*Dbg.Lib

      GOTO BUILD

      :CLEAN_RELEASE

      del /Q ..\..\Bin\Release\*.*
      del /Q ..\..\..\Common\Bin\Release\*.*

      ren ..\..\Lib\*Dbg.Lib *Dbg.Tlf
      del /Q ..\..\Lib\*.Lib
      ren ..\..\Lib\*.Tlf *.Lib

      ren ..\..\..\Common\Lib\*Dbg.Lib *Dbg.Tlf
      del /Q ..\..\..\Common\Lib\*.Lib
      ren ..\..\..\Common\Lib\*.Tlf *.Lib

      :BUILD

      Set Proj_Dir=..\..\..\Common\Source\Database

      Set Proj_Name=DBRecall
      MSDEV /USEENV %Proj_Dir%\%Proj_Name%\%Proj_Name%.dsp /MAKE "%Proj_Name% - Win32 %Config%" %ReBuild_Required%
      if %ERRORLEVEL% GEQ 1 GOTO end

      In the above script what changes I need to do inorder to generate debug info??

      S Offline
      S Offline
      Super Hornet
      wrote on last edited by
      #2

      Please post your replies

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups