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 195975 - can't use cloned and can't use original run profile
Summary: can't use cloned and can't use original run profile
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 23:39 UTC by Thomas Preisler
Modified: 2012-10-30 21:09 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 Thomas Preisler 2011-02-24 23:39:12 UTC
There is a delicate problem with run profiles and debugger (and run). We can't use a cloned version due to the dbxgui is currently using it. It wants to set values in the project's run profile. And we can't use the original version because on Windows we need the modified PATH which is in the clone. Added this hack that meidigates the regression:

DbgActionHandler.java:
    private void doExecute(final String executable, final DebuggerManager dm, final InputOutput io) {
	final Configuration configuration = pae.getConfiguration();
        final RunProfile profile;
        // The following is a hack to work around issues with dbxgui interaction with run profile.
        // We can't use the clone becasue of dbxgui and and we can't use the original because of on windows we want to use a modified PATH.
        // We need to figure out a better solution but this should work for now (with no regressions)
        // See CR xxxxxx
        int platform = ((MakeConfiguration) configuration).getDevelopmentHost().getBuildPlatform();
        if (platform == PlatformTypes.PLATFORM_WINDOWS) {
            profile = pae.getProfile(); // Use clone on windows because of modified PATH
        } else {
            profile = configuration.getProfile(); // Don't use clone on Solaris/Linux beacuse of interaction with dbxgui. It sets values with for instance runargs xxx ...
        }

We will need to rethink how we handle this and come up with a better solution, for instance asking dbxgui not to modify run profile.
Comment 1 Thomas Preisler 2011-02-24 23:48:02 UTC
searching for changes
changeset:   189417:fa04550fc4b9
user:        Thomas Preisler <thp@netbeans.org>
date:        Thu Feb 24 15:43:31 2011 -0800
summary:     #195975  can't use cloned and can't use original run profile

changeset:   189418:bbf19d37c56d
tag:         tip
user:        Thomas Preisler <thp@netbeans.org>
date:        Thu Feb 24 15:48:37 2011 -0800
summary:     #195975  can't use cloned and can't use original run profile
Comment 2 Thomas Preisler 2011-02-25 01:52:12 UTC
Things to try (in Studio with dbxtool):

1) Stop in a project
2) in dbx's commandline window type: runargs 111 222
3) open project's properties and view arguments in Run Command. They should now be 111 222
4) change the arguments and click OK. This should trigger the command "runargs xxx..." in dbx's command line window.
5) same two-way changes should work with debug property options.
Comment 3 Quality Engineering 2011-02-26 05:14:24 UTC
Integrated into 'main-golden', will be available in build *201102260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fa04550fc4b9
User: Thomas Preisler <thp@netbeans.org>
Log: #195975  can't use cloned and can't use original run profile
Comment 4 Leonid Lenyashin 2012-10-30 21:09:38 UTC
There was no activity on this issue for quite a long time. We apologize that the issue was not addressed so far due to lack of development resources. We might not have time in near future to fix this problem, so it is closed as WONTFIX.
If the issue is still critical for you please do not hesitate to REOPEN it.
Thank you for using our product and reporting bugs. We are really sorry that we were not able to fix this issue timely.

Regards,
CND team.