如何编译带有额外调试信息的VB6程序?
How to compile a VB6 program with extra debugging information?
如何编译带有额外调试信息(PDB文件/符号)的VB6程序?
如果我只是从“文件”菜单中选择 "Make DLL",则不会创建任何 PDB 文件。
来自https://support.smartbear.com/viewarticle/2357/
Compiling Microsoft Visual Basic 6.0 Applications With Debug Information
This topic explains how to compile Microsoft Visual Basic 6.0
applications with debug information...
Visual Basic may include debug information in the executable file, or
add debug info to an external PDB file. ...if you compile a release
version of your product, it is recommended to generate debug
information as an external file. This will decrease the overall size
of your executable.
To specify the way in which debug information will be generated, use
the Link environment variable. If this variable is not defined, Visual
Basic will generate an external PDB file. Else, the compiler will
include the debug information in the executable. For more information
on this, see Visual Basic documentation.
To compile your Visual Basic application ... follow these steps:
- If you compile a release version of your product, make certain that the
Link
environment variable is not defined. If this
environment variable exists, Visual Basic will embed debug information
in the executable and thus the overall size of your application will
increase.
- Open your project in Microsoft Visual Basic.
- Select
Project | Project Properties
from Visual Basic’s main menu. This will open the Project Properties
dialog.
- Move to the
Compile
tabbed page and select the Create Symbolic Debug Info
check box:
- Press OK to close the dialog.
- Recompile your application.
There is no need to ship the generated PDB files along with your
application.
如何编译带有额外调试信息(PDB文件/符号)的VB6程序?
如果我只是从“文件”菜单中选择 "Make DLL",则不会创建任何 PDB 文件。
来自https://support.smartbear.com/viewarticle/2357/
Compiling Microsoft Visual Basic 6.0 Applications With Debug Information
This topic explains how to compile Microsoft Visual Basic 6.0 applications with debug information...
Visual Basic may include debug information in the executable file, or add debug info to an external PDB file. ...if you compile a release version of your product, it is recommended to generate debug information as an external file. This will decrease the overall size of your executable.
To specify the way in which debug information will be generated, use the Link environment variable. If this variable is not defined, Visual Basic will generate an external PDB file. Else, the compiler will include the debug information in the executable. For more information on this, see Visual Basic documentation.
To compile your Visual Basic application ... follow these steps:
- If you compile a release version of your product, make certain that the
Link
environment variable is not defined. If this environment variable exists, Visual Basic will embed debug information in the executable and thus the overall size of your application will increase.- Open your project in Microsoft Visual Basic.
- Select
Project | Project Properties
from Visual Basic’s main menu. This will open theProject Properties
dialog.- Move to the
Compile
tabbed page and select theCreate Symbolic Debug Info
check box:
- Press OK to close the dialog.
- Recompile your application.
There is no need to ship the generated PDB files along with your application.