The breakpoint will not currently be hit. No symbols have been loaded for this document. In SharePoint Development or Deploying SharePoints wsp


These symbols, DLLs can belong to same project or any other references from other projects. There are various reasons for this. We will explain few tips that you can try.

Check for multiple solutions

If the same reference libraries are referred from other solution and if it is in open in a Visual Studio solution, assemblies might be held with file lock by other Visual Studio that causes not to deploy reference assemblies to GAC (global assembly cache).   

Full Debug Information

First, try to check the project build information and make sure full debug information is specified.

Go to properties for SharePoint Project.

https://1.bp.blogspot.com/-Y3O7zCEQMxI/WksjH2jw57I/AAAAAAAASxM/IL4QeqwA64A_hL6sJARAYe23QQo_lwcuwCLcBGAs/s320/3635662985052923452_1.png

Then go to Build and the Advanced section.

https://4.bp.blogspot.com/-_2Su9kSzxb8/WksjMJgZl0I/AAAAAAAASxQ/rn7Ep29qye0JBQ1rALgUeh5Ssa2lUQ16QCLcBGAs/s320/3635662985052923452_2.png

  Then check for debug information and make sure it is set to full.

https://2.bp.blogspot.com/-DgErP1hhTrA/WksjMC2gH7I/AAAAAAAASxs/aymliuEZtE8FnoQhHuUILfAKcJZhX-XjgCEwYBhgL/s320/3635662985052923452_3.png

Check Load Symbols in debug mode

This is quite a handy way to check the symbols debug files. First, press F5 or start debugging your project.

Then you can find the Module Menu under Debug -> Windows -> Module Menu.

https://1.bp.blogspot.com/-mxq4WrdF4vI/WksjMZbHg1I/AAAAAAAASxs/W3GXfxBk1I0vb8zmU1z7Cl-4nJoLh6UOwCEwYBhgL/s320/3635662985052923452_4.png

There you can find the symbol load information and loading path.

https://1.bp.blogspot.com/-O1Gnz4zcxDo/WksjM6LGYlI/AAAAAAAASxc/8dazqmIhzhotXyWERqTq4g066Fv9bUQmACEwYBhgL/s400/3635662985052923452_5.png

As you can see you will find Loaded Symbols and path. There is a Load Symbol button there you can load symbols and change the path. Or else you can copy symbols to the specified path. But sometime it might say that debug information is not matching with the image, meaning debug information and assemblies deployed are not identical.

Enable Just My code

Tools – Option -> Debugging - . General > untick Just My Code

This is well explained here.

You can configure Visual Studio to automatically step over system, framework, and other non-user calls and collapse those calls in the call stack window. The feature that enables or disables this behavior is called Just My Code. This topic describes how to use Just My Code in C#, Visual Basic, C++, and JavaScript projects.

Ref: /en-us/visualstudio/debugger/just-my-code

https://3.bp.blogspot.com/-y3QvEmzucR8/WksjNeR8aiI/AAAAAAAASxg/7pYEQqWTsnoTWiZAJpz12YE1sW6oeM8HwCEwYBhgL/s320/3635662985052923452_6.png

Package the libraries

Seems like your code is not a package within the solution

You need to package the assemblies to deploy with the package. Generally, the runtime will use the available packages in the GAC unless it is packaged.

You can go to project properties.

https://2.bp.blogspot.com/-ZwxC6QrDdPw/WksjNw8r8lI/AAAAAAAASxs/fKOiBEl4m8c2fFXlLK0z7gyb-ADTisPeACEwYBhgL/s1600/3635662985052923452_7.png

Then go to Advanced settings

Package - > Advanced - > bind the assemblies

https://4.bp.blogspot.com/-khb8PB9JUz8/WksjOTJVuAI/AAAAAAAASxs/n5FWQktXonAcREmeFMxvKf8PTUjlo4TAgCEwYBhgL/s320/3635662985052923452_8.png

Add the assembly to the package.