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 205708 - Breakpoints don't work
Summary: Breakpoints don't work
Status: CLOSED DUPLICATE of bug 205418
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 12:04 UTC by v3dsoft
Modified: 2011-12-01 10:53 UTC (History)
1 user (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 v3dsoft 2011-11-30 12:04:06 UTC
Hello! 

It seems that C++ breakpoints do not work in NB 7.1 RC1, at least on Windows. 
IDE stops the program and shows current line when error like division by zero occurs, but breakpoints do not have any effect. I tried several different projects with the same result.

NetBeans 7.0.1 works perfectly so I think this is not a problem with my GDB.

GCC version: 4.6.1 (MinGW)
GDB version: 7.3.1 (MinGW)


GDB console dump:

=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.3.1\n"
~"Copyright (C) 2011 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"mingw32\".\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
&"C:\\\\Users\\\\Administrator/.gdbinit: No such file or directory.\n"
(gdb) 
2-list-features
3-gdb-set print repeat 0
4-gdb-set backtrace limit 1024
5-gdb-set print elements 0
6set new-console
7-file-symbol-file "D:/V3DSoft/Programs/Learn/NB71Test/dist/Debug/MinGW-Windows/nb71test"
8-file-exec-and-symbols  "D:\\V3DSoft\\Programs\\Learn\\NB71Test\\dist\\Debug\\MinGW-Windows\\nb71test"
2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes"]
(gdb) 
3^done
(gdb) 
4^done
(gdb) 
5^done
(gdb) 
&"set new-console\n"
6^done
(gdb) 
7^done
(gdb) 
8^done
(gdb) 
9-file-list-exec-source-file
10cd D:\V3DSoft\Programs\Learn\NB71Test
11-exec-arguments 
12set environment Path=C:\Dev\MinGW\MSys\1.0\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\PROGRA~1\MATROX~1\System64;C:\PROGRA~1\MATROX~1\System32;C:\Dev\gtkmm\bin;C:\Dev\MiKTeX 2.8\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Dev\MinGW\bin;C:\Dev\MinGW\MSys\1.0\bin;C:\Dev\Pixie\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Dev\Render\Pixie\bin;C:\Dev\Render\LuxRender;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Dev\Render\Aqsis\bin
13-break-insert -f "/D/V3DSoft/Programs/Learn/NB71Test/main.cpp:19"
14-var-create - @ WstrToStr(path)
15-var-update --all-values * 
16-var-create - @ WstrToStr(name)
17-var-update --all-values * 
18-var-create - @ currDecorName.toAscii().data()
19-var-update --all-values * 
9^done,line="8",file="main.cpp",fullname="d:\\v3dsoft\\programs\\learn\\nb71test\\main.cpp",macro-info="0"
(gdb) 
20-break-insert -t _start
&"cd D:\\V3DSoft\\Programs\\Learn\\NB71Test\n"
~"Working directory D:\\V3DSoft\\Programs\\Learn\\NB71Test.\n"
10^done
(gdb) 
11^done
(gdb) 
&"set environment Path=C:\\Dev\\MinGW\\MSys\\1.0\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Common Files\\Microsoft Shared\\Windows Live;C:\\PROGRA~1\\MATROX~1\\System64;C:\\PROGRA~1\\MATROX~1\\System32;C:\\Dev\\gtkmm\\bin;C:\\Dev\\MiKTeX 2.8\\miktex\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Dev\\MinGW\\bin;C:\\Dev\\MinGW\\MSys\\1.0\\bin;C:\\Dev\\Pixie\\bin;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Program Files (x86)\\Subversion\\bin;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Dev\\Render\\Pixie\\bin;C:\\Dev\\Render\\LuxRender;C:\\Program Files\\Common Files\\Microsoft Shared\\Windows Live;C:\\Dev\\Render\\Aqsis\\bin\n"
12^done
(gdb) 
&"No source file named /D/V3DSoft/Programs/Learn/NB71Test/main.cpp.\n"
13^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="/D/V3DSoft/Programs/Learn/NB71Test/main.cpp:19",times="0",original-location="/D/V3DSoft/Programs/Learn/NB71Test/main.cpp:19"}
(gdb) 
14^error,msg="-var-create: unable to create variable object"
(gdb) 
15^done,changelist=[]
(gdb) 
16^error,msg="-var-create: unable to create variable object"
(gdb) 
17^done,changelist=[]
(gdb) 
18^error,msg="-var-create: unable to create variable object"
(gdb) 
19^done,changelist=[]
(gdb) 
20^error,msg="Function \"_start\" not defined."
(gdb) 
21-break-insert -t main
21^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x00401395",func="main(int, char**)",file="main.cpp",fullname="d:\\v3dsoft\\programs\\learn\\nb71test\\main.cpp",line="17",times="0",original-location="main"}
(gdb) 
22-exec-run
=thread-group-started,id="i1",pid="5036"
=thread-created,id="1",group-id="i1"
~"[New Thread 5036.0x40c]\n"
22^running
*running,thread-id="all"
(gdb) 
=library-loaded,id="C:\\Windows\\system32\\ntdll.dll",target-name="C:\\Windows\\system32\\ntdll.dll",host-name="C:\\Windows\\system32\\ntdll.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\syswow64\\kernel32.dll",target-name="C:\\Windows\\syswow64\\kernel32.dll",host-name="C:\\Windows\\syswow64\\kernel32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\syswow64\\KernelBase.dll",target-name="C:\\Windows\\syswow64\\KernelBase.dll",host-name="C:\\Windows\\syswow64\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\syswow64\\msvcrt.dll",target-name="C:\\Windows\\syswow64\\msvcrt.dll",host-name="C:\\Windows\\syswow64\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Dev\\MinGW\\bin\\libgcc_s_dw2-1.dll",target-name="C:\\Dev\\MinGW\\bin\\libgcc_s_dw2-1.dll",host-name="C:\\Dev\\MinGW\\bin\\libgcc_s_dw2-1.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Dev\\MinGW\\bin\\libstdc++-6.dll",target-name="C:\\Dev\\MinGW\\bin\\libstdc++-6.dll",host-name="C:\\Dev\\MinGW\\bin\\libstdc++-6.dll",symbols-loaded="0",thread-group="i1"
*stopped,reason="breakpoint-hit",disp="del",bkptno="2",frame={addr="0x00401395",func="main",args=[{name="argc",value="1"},{name="argv",value="0x741778"}],file="main.cpp",fullname="d:\\v3dsoft\\programs\\learn\\nb71test\\main.cpp",line="17"},thread-id="1",stopped-threads="all"
(gdb) 
23info threads
&"info threads\n"
~"  Id   Target Id         Frame \n"
~"* 1    Thread 5036.0x40c main (argc=1, argv=0x741778) at main.cpp:17\n"
23^done
(gdb) 
No answer for: 22-exec-run
24-exec-continue
24^running
*running,thread-id="all"
(gdb)
Comment 1 Marian Mirilovic 2011-12-01 09:31:38 UTC
Reported as P1 against 7.1 - please evaluate ASAP ... thanks in advance.
Comment 2 v3dsoft 2011-12-01 10:41:32 UTC
Marian Mirilovic, I.m not sure whether your message was for me or for developers.
Anyway, breakpoints started to work in nightly build 201111290600. All seems to be OK.
Comment 3 soldatov 2011-12-01 10:44:09 UTC
in this case it is issue 205418
Comment 4 Marian Mirilovic 2011-12-01 10:52:55 UTC

*** This bug has been marked as a duplicate of bug 205418 ***