启动服务器就直接过了,没法调试啊,设断点不执行是不是和web.xml 配置有关啊 急

解决方案 »

  1.   

    我想单步看看启动actionservlet加载过程,为什么看不到
      

  2.   

    你给系统启动日志,让系统在后台打印出日志就能看到了吧。log4j
      

  3.   

    public void init() throws ServletException {
            final String configPrefix = "config/";
            final int configPrefixLength = configPrefix.length() - 1;        // Wraps the entire initialization in a try/catch to better handle
            // unexpected exceptions and errors to provide better feedback
            // to the developer
            try {
                initInternal();
                initOther();
                initServlet();
                initChain();
                .........................
    当断点设到 final int configPrefixLength = configPrefix.length() - 1; 这句时,循环执行3次 这句,后来就直接跳过 下面四个init方法了,为什么啊
      

  4.   

    你用的什么服务器?tomcat吗?用debug模式启动就可以了。
      

  5.   

    debug 模式?不就是 1设断点 2debug 吗? debug模式怎么操作?
      

  6.   

    到底什么情况执行
    initInternal();
      initOther();
      initServlet();
      initChain();
    这些啊,不是服务器启动就执行么?可是没什么反映啊