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 178812

Summary: Command line arguments are not passed to the degugging session
Product: debugger Reporter: dobrisek
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:

Description dobrisek 2009-12-17 15:14:43 UTC
If you start debugging by calling "run to cursor" (pressing F4) then command line arguments are not passed to the degugging session. If you start debugging by calling "step into" (pressing F7) then command line arguments are noramlly passed to the degugging session.
Comment 1 Martin Entlicher 2009-12-18 02:53:34 UTC
This was caused by the fix of bug #147467.
There's no nice solution to this I guess, since Run/Debug File does not run the main class with arguments specified in project properties.

I'll probably revert the fix of bug #147467, since that seems to add the inconsistency.

Not a P1 - there's easy workaround: Submit a breakpoint on the line and debug the project. Other IDEs even do not allow to start debugger via Run to Cursor.
Comment 2 Martin Entlicher 2009-12-21 07:15:35 UTC
Fixed in changeset:   156090:930207afd184
http://hg.netbeans.org/main/rev/930207afd184
Comment 3 Quality Engineering 2009-12-21 23:38:41 UTC
Integrated into 'main-golden', will be available in build *200912220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/930207afd184
User: mentlicher@netbeans.org
Log: #178812 - Always start the debugging of a project.