The reason to have a debug file is because it is easy to quickly navigate to the Fault code node
Here's how to implement the debug file and publish it to the bin file in the directory.
After the corresponding website is acquired
Compile
Publish "Find the node that needs to be published, Presentationlayer, select right Click > Properties > Package/Publish Web
Configure Selection activity (Release), find "Exclude generated debug Symbols (G)" To confirm check
Should not check, remove tick
Then go back to the published node, right-click > Publish > Settings > "File Publishing Options"
Tick "Delete existing files before publishing" & "pre-compile (C) configuration during publishing", click Configure to go to "Advanced precompilation settings"
Tick "issue debug information" to confirm that the next step is published under the specified directory.
Another: If the directory is fixed, go to: "Solution Explorer" to find a large project for this project, right-click on "Check In"
This way, the next time you publish, you can publish the PDB file to the corresponding directory during the publishing process.
When you publish a Microsoft Visual Studio Web site without a debug file in the bin file, the PDB file