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 269486 - Breakpoints and CurrentPC are not shown in the editor while debugging
Summary: Breakpoints and CurrentPC are not shown in the editor while debugging
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-04 09:46 UTC by BillSoftware
Modified: 2017-04-10 13:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
tar file containing 2 screen shot, one while editing code, the other while debugger is running (230.00 KB, application/x-tar)
2017-01-04 09:46 UTC, BillSoftware
Details
gdb traces (20.59 KB, text/x-log)
2017-01-04 12:43 UTC, BillSoftware
Details
message log (33.62 KB, text/x-log)
2017-01-04 17:03 UTC, BillSoftware
Details
new Logs cpp project from scratch (34.83 KB, text/x-log)
2017-01-04 22:19 UTC, BillSoftware
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BillSoftware 2017-01-04 09:46:10 UTC
Created attachment 163335 [details]
tar file containing 2 screen shot, one while editing code, the other while debugger is running

Hi,

Since I've installed Neteans 8.2, I've issue whenever I'm debugging my code.

I can set the breakpoint and see the variable, but the problem is that even though the breakpoints are hitten, all the GUI information that tells me there is a breakpoint on a given line (such as the red square on the left side) disappear.

The green arrow that tells you where you are currently stepping is also not appearing.

I'm running on Linux 16.04 LTS with the last official version of Netbeans 8.2.

Could you please provide a fix for this issue?
Comment 1 soldatov 2017-01-04 11:08:44 UTC
If you have problem with GDB, then Gdb log should be attached. See http://wiki.netbeans.org/GdbLog page.
In you case It is a some /tmp/gdb-cmds*.log file.
Comment 2 BillSoftware 2017-01-04 12:43:30 UTC
Created attachment 163336 [details]
gdb traces

gdb traces
Comment 3 BillSoftware 2017-01-04 12:46:13 UTC
Hi,

I've added the gdb traces.

I'm not sure though this is a gdb problem since debugging works fine (i.e. breakpoint can be set, variable value can be retrieved). My problem consist of display issue. E.g. line where breakpoint are set are no longer highlighted in red, line where the current execution is is not visible (no green arrow), etc...

Anyway I let all options open.

Thanks a lot!
Comment 4 Maria Tishkova 2017-01-04 16:46:59 UTC
Thanks for the details provided.

Can you please add an IDE log file (<userdir>/var/log/messages.log) file
Comment 5 BillSoftware 2017-01-04 17:03:58 UTC
Created attachment 163337 [details]
message log

Hi,

I've now attached the logs that you've asked.

Thanks a lot to look at the issue!

Kind regards,
Comment 6 soldatov 2017-01-04 17:22:55 UTC
I see IDE uses /home/lcarlier/temp/Local/Programmation/cpp/CG_Bender/main.cpp path, but GDB works with /home/lcarlier/temp/Programmation/cpp/CG_Bender/main.cpp path. What is /home/lcarlier/temp/Local directory?
Comment 7 BillSoftware 2017-01-04 20:31:30 UTC
Hi,

/home/lcarlier/temp/Local was the place where the code was, then I moved the project because I was just reinstalling my system.

But the bug was there since day one, and debugger functionality is working fine (breakpoint, variable dumping, etc...).

This is just very annoying that all the GUI information (such as the place where we are currently stepping, or the highlight in red of the line where a breakpoint is set) are not showing up while debugging.

Kind regards,
Comment 8 soldatov 2017-01-04 21:03:07 UTC
Can you try Project Properties > Debug > Substitute Path property?
Comment 9 BillSoftware 2017-01-04 22:19:57 UTC
Created attachment 163338 [details]
new Logs cpp project from scratch

Hi,

I've tried the Substitute path as following:
compile time prefix: /home/lcarlier/temp/Local/Programmation/cpp/CG_Bender/
replace path prefix: /home/lcarlier/temp/Programmation/cpp/CG_Bender/
but the problem remained.

Nevertheless I've discovered a new element.

To be 100% sure, I decided to create a new hello world CPP application from scratch. Then I tried to debug it and again the GUI elements wouldn't show up (as shown on the second screen shot of the tar file) but debugging functionality are working fine.
Then I tried to close and reopen the project within netbeans, and restart the debugger and the problem was gone, I'm not sure how.

I've attached the logs.

Kind regards,
Comment 10 Maria Tishkova 2017-04-10 13:05:19 UTC
(In reply to BillSoftware from comment #9)
> Created attachment 163338 [details]
> new Logs cpp project from scratch
> 
> Hi,
> 
> I've tried the Substitute path as following:
> compile time prefix: /home/lcarlier/temp/Local/Programmation/cpp/CG_Bender/
> replace path prefix: /home/lcarlier/temp/Programmation/cpp/CG_Bender/
> but the problem remained.
> 
> Nevertheless I've discovered a new element.
> 
> To be 100% sure, I decided to create a new hello world CPP application from
> scratch. Then I tried to debug it and again the GUI elements wouldn't show
> up (as shown on the second screen shot of the tar file) but debugging
> functionality are working fine.
> Then I tried to close and reopen the project within netbeans, and restart
> the debugger and the problem was gone, I'm not sure how.
> 
> I've attached the logs.
> 
> Kind regards,



Hello!!

Can you try to create a project in /tmp folder?

As I can see 
/home/lcarlier/Local/Programmation/cpp/testApp is a link to /home/lcarlier/Programmation/cpp/testApp/main.cpp
correct?

Can you try to create sample project without any softlinks and let me know if you have problems with breakpoints and currentPC (green arrow)