This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 17677 - unable to run batch file for debugger type
Summary: unable to run batch file for debugger type
Status: CLOSED INVALID
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-14 19:11 UTC by Janos Mucsi
Modified: 2001-11-16 10:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janos Mucsi 2001-11-14 19:11:33 UTC
Go to Tools->Options->Debugging and Executing->Debugger Types. Define a new debugger type, call it AltoWeb. For external process, 
type d:\doit.bat
Create the batch file and paste the following for content:

echo hello even thought this is really long I think that this will work
echo this is just a very long second line let's try if it shows up in the output window

Create a class, click on its node and bring up the Properties window. Go to Execution tag select AltoWeb for Debugger. Debug the class. 
Nothing will show up in the output. This is a bug. You can't run larger batch files.
Now edit the batch file and take out the second line. Debug the class again, now the first line will show up in the output which is fine.
Comment 1 Daniel Prusa 2001-11-15 16:08:23 UTC
Batch files (even "larger") can be run in the way you have described 
if you define a new executor type, not debugger type.

When the debugger is started it launches a process (with debug 
parameters), waits till the launched process connects to it, obtains 
the process' i/o streams and handles them.

In your case, a batch file is launched, however it does not connect 
to the listening debugger (because it is not a VM launched in debug 
mode), thus i/o streams of the process are not obtained and nothing 
is printed in the Output window. It does not depend on the length of 
the batch file.
Comment 2 Jan Stola 2001-11-16 10:40:45 UTC
Invalid => Closed.