Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Causes the compiler to generate debugging information and place it in the output file(s).
/debug[+ | -]
' -or-
/debug:[full | pdbonly]
Arguments
Term |
Definition |
+ | - |
Optional. Specifying + or /debug causes the compiler to generate debugging information and place it in a .pdb file. Specifying - has the same effect as not specifying /debug. |
full | pdbonly |
Optional. Specifies the type of debugging information generated by the compiler. If you do not specify /debug:pdbonly, the default is full, which enables you to attach a debugger to the running program. The pdbonly argument allows source-code debugging when the program is started in the debugger, but it displays assembly-language code only when the running program is attached to the debugger. |
Remarks
Use this option to create debug builds. If you do not specify /debug, /debug+, or /debug:full, you will be unable to debug the output file of your program.
By default, debugging information is not emitted (/debug-). To emit debugging information, specify /debug or /debug+.
For information on how to configure the debug performance of an application, see Making an Image Easier to Debug.
To set /debug in the Visual Studio integrated development environment |
|
Example
The following example puts debugging information in output file App.exe.
vbc /debug /out:app.exe test.vb
See Also
Reference
Sample Compilation Command Lines (Visual Basic)