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 197464 - Can't attach debugger to any program with space in the path
Summary: Can't attach debugger to any program with space in the path
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-04-05 22:29 UTC by luky
Modified: 2015-07-16 01:20 UTC (History)
3 users (show)

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 luky 2011-04-05 22:29:56 UTC
If you try to attach debugger to a program which lays for example in c:\Program Files you will get an error message
C:\\Program: No such file or directory.

in executable line of attach dialog you can see just c:\program instead of the whole path

It's a regression compared to 6.9 and renders debugger unusable in many scenarios
Comment 1 Alexander Pepin 2011-04-06 09:03:01 UTC
As Simple attach works fine I guess the problem is only in getting executable in Attach dialog.
 Egor, how risky is the possible fix?
Comment 2 Alexander Pepin 2011-04-06 09:45:39 UTC
It does not work on Mac either with the same behavior.
Comment 3 Alexander Pepin 2011-04-06 09:54:52 UTC
BTW on all systems Attach Dialog shows in "executable" field only the part of the path before space.
Comment 4 Egor Ushakov 2011-04-06 10:25:29 UTC
fixed for windows:
http://hg.netbeans.org/cnd-main/rev/66593df7f9fb
also now on all platforms we show full executable line

for macos please file another bug
Comment 5 Alexander Pepin 2011-04-06 12:11:14 UTC
verified on all platforms in dev build #5105
The fix works for both Windows and Mac and I believe it's worth pushing into release70. Please review the fix to be ready to push it without delay as soon as the push approved.
Comment 6 Marian Mirilovic 2011-04-06 12:20:18 UTC
(In reply to comment #5)
> The fix works for both Windows and Mac and I believe it's worth pushing into
> release70. Please review the fix to be ready to push it without delay as soon
> as the push approved.

Ok I agree with integration into release70, we are still waiting for one important fix in Editor which will be done today, so also please proceed with push into release70 TODAY CEST.
Comment 7 Vladimir Voskresensky 2011-04-06 12:25:51 UTC
fix is reviewed.
Comment 8 Egor Ushakov 2011-04-06 12:34:20 UTC
integrated into release70:
http://hg.netbeans.org/releases/rev/febdcf6810b3
Comment 9 luky 2011-04-06 16:09:07 UTC
Very good, that was quick :). Thank you guys
Comment 10 Alexander Pepin 2011-04-06 16:14:10 UTC
to Luky:
 Thank you for reporting the bug!
Comment 11 Quality Engineering 2011-04-07 08:46:28 UTC
Integrated into 'main-golden', will be available in build *201104070400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/66593df7f9fb
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #197464  (Can't attach debugger to any program with space in the path)
Comment 12 Alexander Pepin 2011-04-07 15:02:49 UTC
verified in RC2 build 201104070802.
Comment 13 Esran 2012-02-26 03:16:09 UTC
This bug seems to be back in 201112071828. I tried a fresh install of 201202250400, showed up there too.
Comment 14 Alexander Pepin 2012-02-29 12:14:22 UTC
Confirmed. The bug is back again.
Comment 15 Egor Ushakov 2012-03-21 14:37:07 UTC
fix was removed as a result of incorrect merge, applied it once again:
http://hg.netbeans.org/cnd-main/rev/7c99903b38b3
Comment 16 Quality Engineering 2012-03-22 11:12:49 UTC
Integrated into 'main-golden', will be available in build *201203220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7c99903b38b3
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #197464 (Can't attach debugger to any program with space in the path) - fix was removed by mistake
Comment 17 cagnulein 2015-06-23 13:32:09 UTC
I think there was a regression.
On Windows 7 with NetBeans IDE 8.0.2 (Build 201411181905) it doesn't work.
Comment 18 Alexander Simon 2015-07-15 13:17:00 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/dfd8167964ef
Comment 19 Quality Engineering 2015-07-16 01:20:09 UTC
Integrated into 'main-silver', will be available in build *201507160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/dfd8167964ef
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #197464 Can't attach debugger to any program with space in the path