🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.debugger
Article #5109

Re: debugging console apps.

#5109
From: C Martens
Date: Thu, 25 Mar 1999 00:00
40 lines
1978 bytes
My experience is that the console debugger on 1.0 (and I don't know about 2.0)
works on my NT system, but not on Windows 95. It looked like it worked once
there, but never again. So I changed my program to use command line (args[])
Run, Parameters, command line, remembering that these parms are String Objects
(args[]), and to use a  .equal method compare if you need to test against any of
them.. To look at output use View, execution log, and you can see your output
while stepping thru on the debugger. Normal Run output (MS DOS) works fine. To
get it to stop so you can see it use:

int keyval = 0;

 try{
               System.out.println(System.in.read());
               System.out.println(keyval);
               }
               catch (IOException e){}
               System.exit(0);

then key a character.


Jaime De La Jara F. wrote:

> I`m having problems to debug a console application; when I try to execute
> the readLine method of a
>
> string variable, the debugger console window does not accept the input, and
> it displays nothing
>
> though I checked the "send output to console window" option in the Run/Debug
> Tab of the project properties.
>
> In the Execution Log window, appears an exception message, it is an
> IllegalMonitorStateException in
>
> the InputStreamReader Class.
>
> Has anybody else seen this problem?
>
> Thanks.
Technical Details
Message-ID: <36FA4D18.F58BC5EB@us.ibm.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7b9lr9$m3u4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5c5,3708c5d42243eee3
X-Google-Attributes: gidff5c5,public
From: C Martens <cmartens@us.ibm.com>
Subject: Re: debugging console apps.
Date: 1999/03/25
Message-ID: <36FA4D18.F58BC5EB@us.ibm.com>
X-Deja-AN: 458957252
Content-Transfer-Encoding: 7bit
References: <7b9lr9$m3u4@forums.borland.com>
To: "Jaime De La Jara F." <jdjaraf@tensor.dfi.uchile.cl>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.debugger