Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-11-2004, 03:30 AM   #1
LQ Newbie
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
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="*" %> <%@ 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
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to invoke passwd phoenix_fei Programming 2 06-03-2005 03:44 AM
vim invoke noir911 Programming 1 01-29-2005 08:15 PM
invoke xterm through program sudha naidu Programming 2 12-27-2004 04:46 AM
how to initiate the debugger through JSP for red had linux 9.0 gayrie_8 Linux - Software 0 06-18-2004 08:07 AM
Want to run debugger through JSP page... kirti Linux - Software 0 06-10-2004 08:25 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration