Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCannot debug my moduleCannot debug my module
Previous
 
Next
New Post
5/9/2011 1:11 PM
 
I have tried to set the break point in the on_load event but even that doesn't work
 
New Post
5/9/2011 1:12 PM
 
I am attaching to the asp.net worker.
 
New Post
5/10/2011 3:55 AM
 
Here's a short list of problems why you might not be seeing the symbols loaded.

BTW the right approach is to load up your project in visual studio (no need to load the entire DNN Core) and attach to the running process.  Some people try and 'run' the entire DNN site - it takes forever to load and generally isn't a good idea.



So onto my list:

1) check that the built version (dll + pdb) was a 'debug' build and your project is in 'debug' configuration

2) check that the .pdb file matches the .dll file in the bin directory

3) check that the .pdb file is in the bin directory

4) check that the asp.net version for the site matches the supported asp.net version of the visual stuido. For example, visual studio 2005 can't attach to an asp.net 4.0 runtime.

5) view the 'output' window in Visual Studio and see if you can pick up on any symbol files that can't be loaded.  For example, you may have built the project in one directory and are trying to debug in another directory.

6) check that you are debugging the right process.  Verify the correct w3wp.exe process is the one running your site. THe output window should scroll through the loaded files if you have the right process, even if your module isn't being correctly loaded to match the debug files.

7) make sure you're running with elevated permissions for Visual Studio (will need admin permission) and also for your worker process.

8) try switching the compilation mode of the web.config file to 'debug' if it isn't already



That's all I can think of at the moment.  Don't give up - there is always a reason and you can always get debugging going if you persist.
 
New Post
5/10/2011 4:15 AM
 
Thanks for the checklist, I have a question though



2) check that the .pdb file matches the .dll file in the bin directory-- Should it be the bin folder of my project of the bin folder of my website?



3) check that the .pdb file is in the bin directory-- Should it be the bin folder of my project of the bin folder of my website?



And I am loading my project not the entire website. But I'm glad you said that because I have never been sure if that's a good way to do it.







 
New Post
5/10/2011 4:15 AM
 
Bruce

Your post is Great! Ever i do not have any problems with Debug, but i save it to my Top Links for future. This is the most detailed list about debugging i have ever seen!

Thanks!

Sergey
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCannot debug my moduleCannot debug my module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out