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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...ModulesModules
Previous
 
Next
New Post
4/3/2013 11:31 AM
 

Hi,

I  have created a Custom  Module .But i have some bugs in my module.Is there any way to debug module from DNN

or How to Test Module individullay before installing in DNN.

 

Regards,

Nagasekhar.K

 

 

 

 

 
New Post
4/4/2013 1:48 AM
 

You cant really test a module unless its running inside dnn and interacting with all the elements of the site -- not to mention the classes it extends from.

But of course you can debug a module running as a part of dnn - firstly how do you have your module setup.

Is it in its own solution (Web Application Project) - or is it a set of files in the /DesktopModules/ path using dynamic compilation (Web Solution Project).

If its a WSP you can just open your website inside Visual Studio, set breakpoints on your code and hit debug.
- if you want to edit code - make changes and save code 
- refresh the page with the module - new code will be automatically updated

If its a WAP you will need to open your solution in Visual Studio
 - compile the module in debug mode
 - Install Module - copy the lastest version of your module files onto your local test site /DesktopModules/myModule/ etc
 - making sure the debug .dll goes into the /bin/ folder - not a release version.
 - wait for asp.net worker process to restart (this is needed because any file that is changed in the /bin/ folder will force a restart.
 - then while the process is still running use the Debug-> Attach option in  Visual Studio
   this will attach the debugger to the running asp.net worker process w3wp.exe.
 - you should then be able to again set breakpoints in your code.
 - If you want to edit your code - repeat the process 

Westa

PS - will someone remind me again why WAP is so good for development

 
New Post
4/4/2013 4:00 AM
 

Hi ,

Thanks  for Replying.I have created Module as a Seperate VS2012 project.I am installing in to DNN.

I am able to view  ui content of CustomModule  in DNN.I am having a button which will interacting with SqlserverDB.

When i press button i am getting error like  "A critical error has occurred. String was not recognized as a valid Boolean."But in my code there is no code line to get this type of error.

Please help me on this

Regards,

Naga

 

 

 
New Post
4/5/2013 1:03 AM
 

hello 

you can follow this link to learn how to debug your dnn code

http://www.youtube.com/watch?v=2EHldD...

thanks 

manish singh 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...ModulesModules


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