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 255989

Summary: [mixeddev] can not step in from Java into native if IDE is Studio and my .so is built with GNU or Intel
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: DebuggerAssignee: Maria Tishkova <mromashova>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: That's not a patch, but rather a place the problem originates from.

Description Vladimir Kvashin 2015-10-18 09:22:10 UTC
The bug is in Studio. But the reason is in NetBeans, so I'm filing it here.

If my native code is built with GNU, and I'm using Studio, then I can not step from java into native.
Comment 1 Vladimir Kvashin 2015-10-18 09:25:20 UTC
Created attachment 156771 [details]
That's not a patch, but rather a place the problem originates from.

If apply this patch, it will work with gnu, but obviously won't work if your native code is built with Studio. So we need adding some heuristics here.
Comment 2 Vladimir Voskresensky 2015-10-19 09:02:19 UTC
I propose the following if IDE has more than one available Native debuggers:
- before attaching to PID show Attach dialog filtered by this PID (in read-only mode to prevent modification)
=> use can choose GDB vs Studio + select Project