C voice dll breakpoint debugging method

Reprinted from: https://blog.csdn.net/qingzai_/article/details/45348613

 

dll debugging method:


1. Put the newly generated dll and pdb in the process directory that starts the dll
2. Start the process
3. Then in the dll project, debug options - "Attach to process -" select the process to start
4 .Breakpoint debugging




non-this process dll error handling method:
0. Put the pdb debug file of the relevant dll in the same directory as the dll
1. Start the process
2. Find the debug-"window-"module (all related external loads in this process) dll) (find the faulty dll)
3. Right-click the symbol status item in the module to load the symbol -> select the relevant pdb
4. Call the debugging information to directly view the error code

 

Remember, only one debugger can be debugging a program at a time.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325225835&siteId=291194637