简体   繁体   English

调试不起作用

[英]debug is not working

I am working on struts2 framework, when I am debuging a webapp it starting debuging but directly showing below page.. enter image description here 我的工作Struts2框架,当我调试运行web应用程序它开始调试运行,而是直接显示页面下方.. 在这里输入图像描述

my struts.xml code is there for this method 我的struts.xml代码在那里有此方法

        <action name="submitRegistration" class="Actions.LoginActionn" method="submitRegistration" >
           <result name="success">reg.jsp</result> 
        </action>

and the Action method is... 动作方法是...

 public String submitRegistration(){

            Session hibernatesession=null; 
            try{
                hibernatesession=hibernateAllahrakha.getSession();
                hibernat

esession.beginTransaction();
            Daofactory dfact= new  Daofactory();
            LoginDao ld= dfact.LoginConfigureManager();

        boolean save=ld.saveuser(hibernatesession, ust);
        if(save){

            System.out.println("yes");
        }
        else{

            System.out.println("no");
        }

            hibernatesession.getTransaction().commit();

        }
        catch(Exception e){

            System.out.println("Exception occour in Submit Regestration "+e);
        }
        finally {
            if(hibernatesession!=null){
                hibernatesession.flush();
                hibernatesession.close();
            }
        }

        return SUCCESS; 
    }

How can I debug properly? 如何正确调试? I put debugging point in the line where Session hibernatesession=null; 我将调试点放在Session hibernatesession=null;的行中Session hibernatesession=null; and boolean save=ld.saveuser(hibernatesession, ust); boolean save=ld.saveuser(hibernatesession, ust);

The error says that the debugger can not find your project souce. 该错误表明调试器找不到您的项目源。 To do that open "source lookup path" and select and link your project source folder to source to resolve the issue. 为此,请打开“源代码查找路径”,然后选择项目源文件夹并将其链接到源以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM