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...Getting StartedGetting StartedStepping through code for Debugging a ModuleStepping through code for Debugging a Module
Previous
 
Next
New Post
11/22/2010 3:48 AM
 
Hi there fellow DNN lovers,

I was hoping that someone could help me out here.
I would like to know how (I assume it is possible) you step through code when debugging a module.

At the moment I upload the module to my Dev Env and wait for it to fail, then "find" the error by a number of techniques, mostly time consuming.
I would love to be able to step through the code like you would a Windows application.

Potentially expanding on this post would help a lot 
http://www.dotnetnuke.com/Resources/F...

Thanks so much, appreciate your time and concern.

Cheers

Craig
 
New Post
11/22/2010 4:49 AM
 
on your dev machine, you should have IIS installed and a DNN website with your module running. Into the web site directory paste debug symbol files (or use source package) and enable debug in web.config. Within your local Visual Studio place your breakpoints in your module and browse your site. you will be able to debug each command using toolbar or keyboard commands.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/24/2010 8:36 PM
 
Hi Sebastian, Thanks for the reply. Just to clarify: I should put the Debug Symbol Files, ie. .pdg files into the Root of my local DNN install? eg. My Local IIS Instance points to E:\DNN55 so will put the pdg files into E:\DNN55\bin? In web.config I have altered this line to debug="true" I guess I am wondering how the compilation connects to visual studio still? Should I move my entire solution to this directory somewhere? If so, should it go into the DesktopModules\myModule folder for the item I am working on, or should it be in the Root dir of the website, or am I kinda missing the point? What if I created an App_Code directory in the DesktopModules\myModule or use the one in Root and drop the .vb or .cs files in there? Then open the entire DNN instance in Visual Studio in order to set the breakpoints at the relevant module lines I want to develop/ check. I appreciate your time and expertise. Thanks C
 
New Post
11/25/2010 3:25 AM
Accepted Answer 
no, the pdb files need to go to the /bin directory. Setting debug to true in web.config refers to all the JIT compiled code, while VS refers to the .dll's in bin (by providing .pdbs you are providing references to the source code). For your module, you need to have source code files in place, as during module compile/packaging. Using visual Studio, you are connecting to the w3p worker process and may now debug your module and all DNN calls.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/29/2010 12:55 AM
 
Thanks Sebastian, Appreciate your help. The only thing I would add to help the next person is that you need to be running VS in Administrator mode in order to attach to this. Also setting the ping settings in IIS on your Dev machine to false as per this link http://msdn.microsoft.com/en-us/library/bb763108.aspx to enable debugging over longer periods of time. Thanks
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedStepping through code for Debugging a ModuleStepping through code for Debugging a 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