• Post Reply Bookmark Topic Watch Topic
  • New Topic

Debugging Web Application that doesn't follow web structure

 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a web application that is developed modularly..., which doesn't follow the structure of a web application at source level. I need to understand the flow

Ant,Deployment script, packages all the modules and puts them into lib (most of the classes goes here, eventhough they are not 3rd party libraries) and classes folder...

Is there any chance of debugging this Web Application?
[ September 15, 2008: Message edited by: Pratap koritala ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no standard structure for the source code of a web app. You can make it anything you want. Only the deployment structure is described.

But for debugging, the source structure shouldn't matter much. What particular issue are you facing in debugging the app?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IF the source does not contain JavaDocs style annotation -
curse gently
then go through and add minimal annotation yourself.

With proper use of annotation you can build an understanding of dependencies and flow.

If you cant figure out how a critical point is reached you can insert a

new Throwable("some note").printStackTrace();

Bill
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its like , One Servlet dispatching all the requests to respective modules... like /*

Code base is very large and its not html , its Vector markup Lang

it contains very little JavaDocs , but i couldn't find doclets source to build it....

So, i had to debug it to make any sense out of it...

How can I start......
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the way to debug

I started Web server in debug mode on some port

then, I opened the source modules with netbeans IDE and attached the debugger to Webserver port.

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!