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.
Created attachment 156206 [details] gdb-cmds7836711600494957902.log I’m using NetBeans on Mac OS X 10.10.5 with the remote development functionality. The remote System is a Ubuntu 14.10 with gcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1 and gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs. Building the project works perfect, but if I want to debug the project and it hits a breakpoint I don’t end up in the specific source file, but I get a disassembly tab of the function I wanted to inspect. This happens with the official NetBeans IDE 8.0.2 (Build 201411181905), NetBeans IDE 8.1 Beta (Build 201508041349) and also with the nightly build NetBeans IDE Dev (Build 201509160002). The binary is compiled with debugging informations and if I debug it with a locally started NetBeans on the Ubuntu system it works as expected. The edited gdb output logs are are attached. Comparing the locally started gdb commands with the remote ones the significant difference is the last command on the Mac: 24-data-disassemble -f "/path/to/project/main.c" -l 85 -- 1 Is this a known misbehavior or is there a option to disable the automatic disassembly?
Could you please tell me where the project itself is located? Also I'd like to know if switching to the source editor helps or not.
Created attachment 156418 [details] cnd_diagnostics_2015-09-25T08_17_51.txt
Created attachment 156419 [details] gdb-cmds4076075992401198566.log
I reduced my problem to a simple test program and attached two new diagnostic files. One cnd file and a new gdb-cmds file. I hope this will help you to get enough information about the project location. The path mapping is: LocalPath=/Volumes/mwdev64v9-Work/ RemotePath=/users/mw/mwdev64v9-Work/ Do you mean by switching to the source editor, to open the source file containing the main function? If yes, this doesn't help. I can't see the current line being debugged and if I 'step over', the IDE switches back to the disassembly file.
It's not clear for me if you create a local project or a remote one. No. There is the context menu item called "Go to source". Could you please try using it?
I tried both. I created one on my local system and one on the remote system. For both projects it's the same result. If I open it on the remote Linux system with the local NetBeans IDE and debug the project I end up in the source file and if I debug it remote I end up in the disassembly view. If I use the "Go To Source Code" the cursor jumps the the "Current Program Counter" in the disassembly view.
There is an option for you to try. You may set the path mapping table manually. You should specify the table in the project properties
I think the path mapping is already matching both directory trees. The local path is /Volumes/mwdev64v9-Work/ and the remote path is /users/mw/mwdev64v9-Work/. Listing the local one with 'ls /Volumes/mwdev64v9-Work/Welcome_1': Makefile build dist nbproject welcome.cc welcome.h Listing the remote one with 'ls /users/mw/mwdev64v9-Work/Welcome_1': build dist Makefile nbproject welcome.cc welcome.h So the mapping should be fine, or do you recommend other paths?
I recommend that you set this mapping manually in the project properties (on the Debug tab).
I tried your suggestion and set this mapping manually in the project properties in the “Debug” tab as the “Substitute Path”. The “Compile Time Path Prefix” is “/users/mw/mwdev64v9-Work/Welcome_1” and the “Replacement Path Prefix” is “/Volumes/mwdev64v9-Work/Welcome_1”. But I still end up in the disassembly tab. Additionally I tried to set the “Working dir” to “/Volumes/mwdev64v9-Work/Welcome_1” and “Source dirs” to “.”, but that also doesn’t fix my problem.
Created attachment 156627 [details] Disassembly output
I added the output of the disassembly tab. It contains some lines with "!Source not found, file: welcome.cc, line: ...".
I tested this issue with NetBeans 8.1 and I can verify, that it is solved.