I for myself start tomcat independent from Netbeans in debugmode 
under Windows you have to set this environment
set TOMCAT_OPTS=-classic -Xdebug -Xbootclasspath/p:c:\jdk1.3.1\lib\tools.jar
Then I connect from netbeans to tomcat via: debug->attach   
JDK1.1 implementation

And now you could debug your application.

Some times netbeans didn't recognize my breakpoints (first time). But most
time it works real fine.

hope this helps

Manfred


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 11:28 AM
> To: [EMAIL PROTECTED]
> Subject: Debugging under Netbeans 3.3.1
> 
> 
> Hi World!
> I have got Struts 1.0.2 (particularly struts-example) running under
> NetBeans 3.3.1 (built-in Tomcat 3.2.1).
> 
> I mounted sipmly the struts-example directory (info by Jerald 
> Henderson in
> this list)
> 
> I'm using the recommended struts war architecture, so my 
> sources are under
> WEB-INF/src...
> Due to this it was necessary to mount separately 
> WEB-INF/classes and tell
> the compiler to put classes there
> otherwise the path is misinterpretes as a part of the package name....
> 
> Now, when I put now a breakpoint in a servlet and start debugging, the
> thread stops at the breakpoint properly, but the message
> NetBeans gets from thread is like:
> -----------
> Connecting to ps6865:11555
> Connection established
> Breakpoint reached at line ? in class
> org.apache.struts.webapp.example.LogonForm by thread Thread-9.
> -----------
> 
> In addition the source code is not opened automatically at 
> this line what
> is the major drawback I see now.
> 
> What to do further to get the debugging working properly?
> 
> Thanks for an hints
> Piotr
> 
> -------------------------------------------------
> Piotr Malecki
> Systems Engineer
> Division SKW2
> Blohm+Voss GmbH
> Hermann-Blohm-Str 3
> 20457 Hamburg
> 
> Tel. (+49 40) 3119 2446
> Fax. (+49 40) 3119 3437
> Email: [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to