facebook

Debuging JSP

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #263333 Reply

    oseasjs
    Member

    I have in my work Eclipse 3.2.1, MyEclipse 5.1 and JDK 1.5.0_10.

    I can´t put a breakpoint on my JSP files. When I try, open a dialog with a bookmark information.

    I would like to know how I can enable the debugging for JSP files.

    Kind regards,

    Oséas Santana

    #263395

    Riyad Kalla
    Member

    Can you grab your configuration information from MyEclipse > Installation Summary > Installation details and paste it here for me?

    Also, do you have WTP, JST or WST installed by chance?

    #266346

    jayne
    Member

    I am having the same problem and searched the forums looking for an answer. ie when I double click on a jsp page to insert a jsp breakpoint, a dialog box pops up “Add bookmark Enter bookmark name: ”

    This is happening when I am doing the quickstart tutorial “Working With Web Projects – Quickstart” and the line of code that I am attempting to place a breakpoint on is:
    Welcome to the world of JSP

    I also have a problem that I posted in the AJAX forum where I don’t have the button to select instant-on debugging. So maybe the problems are related??

    Jayne

    My configuration:

    *** Date:
    Tuesday, 20 February 2007 12:08:07 PM EST

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA

    Eclipse Platform

    Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
    Build id: M20060921-0945

    Eclipse RCP

    Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
    Build id: M20060921-0945

    Eclipse Java Development Tools

    Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
    Build id: M20060921-0945

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20060921-0945

    Eclipse Project SDK

    Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
    Build id: M20060921-0945

    Eclipse Graphical Editing Framework

    Version: 3.2.1.v20060921
    Build id: 20060921-1617

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Eclipse 3.2.1\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    bac_54
    -vmargs-Xmx1024m
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    C:\WINDOWS\system32\javaw.exe

    #266350

    Riyad Kalla
    Member

    Jayne,
    Your install actually looks pretty good. My instant guess is that you are using some other editors by chance and that’s why things aren’t jiving.

    1) Right click on your JSP page, go to Open With, and be sure you are selecting a JSP editor (MyEclipse JSP Visual Designer, or MyEclipse JSP Editor should work). And make sure you are double-clicking in the gutter, or try right-clicking and doing “Toggle breakpoint”.

    2) As far as not having instant-on button. Make sure you are in the MyEclipse Perspective, and try doing a Window > Reset Perspective just to make sure.

    #266351

    jayne
    Member

    In reference to point (1)
    No, I’m definitely using MyEclipse Visual JSP Designer. I’m double clicking in the gutter and just get a prompt to add a bookmark. Right-clicking and selecting ‘toggle breakpoint’ doesn’t work either – ie when I select it, it still doesn’t create a breakpoint.

    Further searching of the forums shows there are at least 3 others who have a similar problem.

    See:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-14038-highlight-bookmark.html

    The other problem is, from the JSP editor I can only set break point within scriptlet code, I can _not_ set break point within plain HTML

    and

    In this picture, a break point was set in plain HTML(not within a <% %> scriptlet), but I can do the same thing with the spec I listed above, when I double click the left ruler, I was told to ‘Add bookmark’, when I right click the left ruler, and select ‘Toggle breakpoint’, nothing happened, no breakpoint set.

    In reference to point (2)
    I reset the perspective as you suggested and it doesn’t fix the problem. I am definitely having this problem in the MyEclipse perspective. My problem appears to be the same problem as quoted below (from Web/Ajax forum). Do you also suggest a re-install, or is there some other way??

    See: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-16056-highlight-instanton.html

    In short, I do not see the “instant-on debugging button”. I do see the MyEclipse Web 2.0 Browser button, however, and it appears to work. Similarly, I do not see the JavaScript Scripts Inspector. If I walk through your AJAX tutorial, for example, I see that the AJAX monitor works fine, but see absolutely nothing in regards to debugging JavaScript. It’s as if it is not loaded/configured or something. I am sure that it is something basic/simple.

    More info … while I can create a JavaScript application, I find that there is no ‘Debug As …” option for javascript.

    #266375

    Riyad Kalla
    Member

    To clarify, the JavaScript debugging is only available in the Professional version, that may be why you aren’t seeing it.

    As to not being able to set breakpoints in JSP files, if you create a scriptlet:

    
    <% String name = "Bob" %>
    

    can you set a breakpoint on that line?

    #266392

    jayne
    Member

    Well, that’s disappointing – to put it mildly! Can I suggest that something in the tutorials makes it explicit that some steps only pertain to the Pro software? (Both the ‘working with web projects quickstart’ and ‘ajax debugging tutorial’ had instructions that I couldn’t follow because I don’t have the Pro version – but nowhere did it say I needed it!)

    Last night, thinking it was an installation problem, I installed the all-in-one trial version which solved the problem. I assume that the trial version is pro, and that is why it works?

    Yes I can set a breakpoint in a scriptlet – it looks like a regular breakpoint, rather than a jsp breakpoint, which is consistent with what you are saying.

    The email from MyEclipse that I received on subscribing stated: “……Following is your MyEclipse software activation information required to upgrade trial or expired versions of the MyEclipse Enterprise Workbench to full feature status.”

    It wasn’t clear to me that we were missing some features. Otherwise, it’s a great product, keep up the great work.

    Thanks for your help – I’m glad to have an answer,
    Jayne

    #266393

    Riyad Kalla
    Member

    Last night, thinking it was an installation problem, I installed the all-in-one trial version which solved the problem. I assume that the trial version is pro, and that is why it works?

    Yes, the trial enables all features.

    It wasn’t clear to me that we were missing some features. Otherwise, it’s a great product, keep up the great work.

    You have a lot of good points above… it’s not very clear what is/isn’t included. I’m sorry for that frustration. I’ve made a note to the marketing department to clarify the language of the site and subscription emails.

    #266400

    jayne
    Member

    FYI:

    Correction: There was a problem with the installation, or at least a discrepancy between the all-in-one download and the plug-in standalone. The instant-on icon was not visible in the original down load of MyEclipse standalone plug-in.

    With the new all-in-one download, the instant-on icon IS visible. But now when I click on it I get a message “SUBSCRIBER LEVEL PROBLEM: The operation you are running is only available to subscribers at the Professional level….”

    This at least makes it clear what is going on, and is much better than what happened when I had just installed MyEclipse plug-in over the top of an existing version of Eclipse.

    Thanks again.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Debuging JSP

You must be logged in to post in the forum log in