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 45394 - "Go to Source" is not available for bpts set with "stop in"
Summary: "Go to Source" is not available for bpts set with "stop in"
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 22:02 UTC by Chihin Ko
Modified: 2005-07-11 12:19 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 Chihin Ko 2004-06-22 22:02:02 UTC
this is to support fixes of  sunstudio bug 5053421:

In the debugging session, "Go to Source" is
available only for line breakpoints, for functio
bpt the action is not available. 

This require  debuggercore support.

I. Debuggercore support:

=>[1]
org.netbeans.modules.debugger.support.BreakpointSupport.getLine(this
= <OBJECT>)  "BreakpointSupport.java":109
  [2]
org.netbeans.modules.debugger.support.nodes.BreakpointNode.canGoToSource(this
= <OBJECT>)  "BreakpointNode.java":311
  [3]
org.netbeans.modules.debugger.support.actions.GoToSourceAction.enable(this
= <OBJECT>, activatedNodes = <ARRAY>) 
"GoToSourceAction.java":48
  [4]
org.openide.util.actions.NodeAction.isEnabled(this
= <OBJECT>)  "NodeAction.java":123
  [5] org.netbeans.core.ModuleActions.1.run(this =
<OBJECT>)  "ModuleActions.java":88
  [6] org.openide.util.Task.run(this = <OBJECT>) 
"Task.java":136
[t@120 l@5]: 


In method getLine():

    public Line getLine ()
    {
	    if (event != null &&
event.getTypeName().equals("FDLine"))
	    {
		    return getLineForLineBreakpointEvent(event);
	    }
      if ((lines == null) || (lines.size () < 1))
return null;
      return (Line) lines.get (0);
    }

debuggercore is looking for "FDLine" type of bpts,
function breakpoints are
"FDFunc" type of bpts, that why it wouldn't
GoToSource.

What we need is something like "FDSource" type of
bpts for bpts that can be
GoToSourced.

We also need getLineForLineBreakpointEvent() for
non-line-bpt.
Comment 1 Jan Chalupa 2004-07-15 16:25:39 UTC
'NO40'. Doesn't apply to 4.0.
Comment 2 Jan Jancura 2004-08-04 14:10:15 UTC
Can I close this issue as it does not apply to nb40?
Comment 3 Chihin Ko 2004-08-04 21:18:13 UTC
you mean you have complete solution in nb4.0 ? if you do,
can you point me where the source is ?
Comment 4 Jan Jancura 2004-08-24 09:42:01 UTC
Sorry, but I probably do not understand your request. Do you want to
change some API of debuggercore or debuggerjpda modules? Or do you
want to change some UI? Or do you have problem to implement some your
feature in sunstudio? Does this bug applies to nb40 at all?
Comment 5 Chihin Ko 2004-08-24 23:23:03 UTC
This issue does not apply to nb4.0. And the fixes are in 3.5V already.
Hanz, you can close this issue.
Comment 6 Max Sauer 2005-07-11 12:19:20 UTC
The problem has been solved a year ago, therefore closing.