我会建立与 pdb-only。您将无法将调试器附加到发布的产品,但是如果得到崩溃转储,则可以使用 Visual Studio 或 WinDBG在崩溃时检查堆栈跟踪和内存转储。
If you go with full rather than pdb-only, you'll get the same benefits, except that the executable can be attached directly to a debugger. You'll need to determine if this is reasonable given your product & customers.
I'm in the process of writing a unhandled exception handler and the stack trace includes the line number when pdb-only is used, otherwise I just get the name of the Sub/Function when I choose None.