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.
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.
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.
Invalid => Closed.