Visual Studio: Debugging a referenced DLL, I have source in another SLN

Rebuild the second solution in Debug mode on your own machine (so that file paths in that PDB are specific to your machine). Copy both the .DLL and .PDB files to your references folder. Visual Studio will pick up the .PDB file automatically and use the file paths to show source. You can also use … Read more

Error: You are debugging a Release build of X.dll

Disable this option under Debug->Options->Suppress JIT optimization on module load (Managed only). A connect report submitted before: https://connect.microsoft.com/VisualStudio/feedback/details/2116788/flag-optimize-is-passed-to-the-debugger-even-while-the-build-settings-optimize-code-is-not-enabled-on-mvc-c-web-projects-when-using-just-my-code. Please also make sure that all projects are in debug mode, Optimize code was unchecked like this case: VS2015 Project no longer runs in debug mode

Connecting to Visual Studio debugging IIS Express server over the lan

Update I made a video that better describes the process, https://youtu.be/5ZqDuvTqQVs If you are using Visual Studio 2013 or above, make sure you run it as an administrator for this to work. Open the %USERPROFILE%\My Documents\IISExpress\config\applicationhost.config (in VS2015 it may be $(solutionDir)\.vs\config\applicationhost.config) file. Inside you should see something like this: <site name=”WebSite1″ id=”1″ serverAutoStart=”true”> <application … Read more

Visual Studio breakpoints not being hit

Solved. Ended up being an incorrect configuration selected in the debug menu. I had mistakenly switched it to a release configuration that could not load the symbols for the document. Switched it to a debug configuration and the breakpoints hit just fine now. To add on to what Abacus mentioned below, it could also be … Read more

Get “Internal error in the expression evaluator” on “Add watch” function when trying to debug WCF service code (MSVS 2013)

This might be a bug in the new (managed) debug engine that ships with Visual Studio 2013. Try turning on Managed Compatibility Mode (which effectively turns it into pre-2013 debug engine), located under Tools – Options – Debugging: If this solves the issue, then I’d suggest trying to reproduce it with a small project, and … Read more

How do I start a program with arguments when debugging?

Go to Project-><Projectname> Properties. Then, click on the Debug tab. Then: If you’re using Visual Studio 2022 Continue by clicking Open debug launch profiles UI. Fill in your arguments in the textbox labeled Command line arguments. If you’re using a version before Visual Studio 2022 The Command Line Arguments textbox is available on the Debug … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)