LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Want to invoke debugger through JSP. (https://www.linuxquestions.org/questions/programming-9/want-to-invoke-debugger-through-jsp-192211/)

kirti 06-11-2004 02:30 AM

Want to invoke debugger through JSP.
 
Actually What i am doing is that i am invoking the debugger SDCDB( it is like GDB only) from JSP page. Before invoking Debugger I have invoked SDCC compiler which wroked properly.
It was another JSP program. And this is another JSP program. But it is not invoking debugger. Might be because it is changing the command prompt from # to (SDCDB). But I am sure that it is not asking for any input from console. When gets invoked on command prompt it first displays some message. But it is not even displays that. What could be the problem???

Could someone help me for that??
After running the JSP page it shows
" sending request to host". and not proceeding further at all. Here is my code.

<%@ page import="java.util.*" %> <%@ page import="java.io.*" %> <%@ page import="java.lang.*" %> <html> <head> </head> <body>
Just testing ....................
<% boolean display = true;
String[] cmd={"/usr/local/bin/sdcdb","/usr/local/kirti/h.cdb"};
int ch; String s,s1; display = false;
Process p = Runtime.getRuntime().exec(cmd);
try{ p.waitFor(); }catch (Exception e) {%> ERROR <%}%>
Executed <% BufferedReader stdInput = new BufferedReader(new
InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new
InputStreamReader(p.getErrorStream())); // read the output from the command
try{out.println("Here is the standard output of the command:\n");
while ((s = stdError.readLine()) != null) { out.println(s); out.println(" \n\n\n");}} catch(IOException t) { t.printStackTrace(); }
while((s1=stdError.readLine())!=null){ out.println(s1); }%>
</body> </html>Do i have to find out how shell scripting is written for GDB invokation.


All times are GMT -5. The time now is 05:22 AM.