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 - Command line arguments are not passed to the degugging session
Summary: Command line arguments are not passed to the degugging session
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 15:14 UTC by dobrisek
Modified: 2009-12-21 23:38 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 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.