You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Ulf Zibis <Ul...@CoSoCo.de> on 2019/07/04 10:27:56 UTC

Debugger doesn't work with C/C++ "Project from existing sources"

Hi,

I'm wondering if there would be a tutorial on how to configure a C/C++
"Project from existing sources" to enable the debugger facility of
NetBeans IDE.

With a project created from the inbuild NetBeans templates it works
fine, but not with a "Project from existing sources".

Can one give me some hints please?

-Ulf


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Great to hear about the win-win.
Yes, NetBeans IDE is really great.

About the Installer I've posted bugs:
https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-2803
https://issues.apache.org/jira/browse/NETBEANS-2804
https://issues.apache.org/jira/browse/NETBEANS-2805
https://issues.apache.org/jira/browse/NETBEANS-2806

-Ulf

Am 05.07.19 um 13:09 schrieb Geertjan Wielenga:
>
>
> On Fri, Jul 5, 2019 at 12:27 PM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     This bug helped!
>
>     The trick is to set Make -> Build Result: ffmpeg_g
>     Did you have to set this too?
>
>
> For me, it worked without that. But great it's working now for you --
> and thanks for giving me the opportunity to try out C/C++, dbg, the
> debugger integration, etc. Learnt a lot since yesterday and I am even
> more impressed by NetBeans than I was.
>
>     The next try from my side would have been clang.
>
>     So now it seems, that I can remove NB 10.0 and use NB 11.1 :-)
>
>     Much thanks for your help.
>
>
> Great to hear.
>
> Gj
>
>  
>
>     -Ulf
>
>     Am 05.07.19 um 11:04 schrieb Geertjan Wielenga:
>>     And some tips in this one may be helpful:
>>
>>     https://netbeans.org/bugzilla/show_bug.cgi?id=243859
>>
>>     Gj
>>
>>     On Fri, Jul 5, 2019 at 10:57 AM Geertjan Wielenga
>>     <geertjan@apache.org <ma...@apache.org>> wrote:
>>
>>         gdb itself should have a log file too, maybe this
>>         helps: http://wiki.netbeans.org/GdbLog or not, but somewhere
>>         when you do those steps you should get a gdb log, that could
>>         help too. Once you find where it is generated, I'd advise to
>>         start from scratch, i.e, close the IDE, remove the userdir,
>>         reproduce the problem, and generate the gdb log.
>>
>>         And at this point you have enough info for filing an issue,
>>         though it appears to be similar or exactly
>>         this: https://netbeans.org/bugzilla/show_bug.cgi?id=169842
>>
>>         Aside from that, I'd advise switching to clang debugger to
>>         see if that will meet your needs.
>>
>>         Gj
>>
>>         On Fri, Jul 5, 2019 at 10:54 AM Ulf Zibis
>>         <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>
>>             Hi,
>>
>>             here is the log from fresh userdir with on run of
>>             debugger. I don't see any error, but warnings.
>>
>>             -Ulf
>>
>>             Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
>>>             Well, the solution is like always — start again with a
>>>             fresh userdir and recreate the problem, then you'll have
>>>             log files that we can look at to see the errors
>>>             generated when the problem occurs. Also consider using a
>>>             different version of gdb to see if that makes a
>>>             difference or switch from gdb to clang debugger. In
>>>             addition look on-line for issues about C/C++ debugger
>>>             breakpoints not being hit in NetBeans, I’ve seen a few
>>>             issues about that, which appears to be the problem here.
>>>
>>>             Gj
>>>
>>>
>>>             On Fri, 5 Jul 2019 at 01:27, Ulf Zibis
>>>             <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>>
>>>                 Hi,
>>>
>>>                 now I installed NB 11.1 beta-3 from here:
>>>                 https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>>>
>>>                 With this I have the same bad results when running
>>>                 the debugger. :-(
>>>
>>>                 Aside: I said the installer to install into
>>>                 /opt/netbeans/11.1/
>>>                 but it installed into
>>>                 /opt/netbeans/11.1/netbeans/
>>>                 Additionally it had deleted
>>>                 "/usr/share/applications/netbeans 10.0.desktop"
>>>                 and created
>>>                 "/usr/share/applications/NetBeans-11.1.desktop"
>>>                 I think, this is not correct.
>>>
>>>                 -Ulf
>>>
>>>                 Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>>>>
>>>>                 Hi Geertjan,
>>>>
>>>>                 please note, that I use NetBeans 10 (not 11.1) and
>>>>                 I have installed it into "/opt/netbeans/10.0/" as
>>>>                 root. Then I started it as root and added the C/C++
>>>>                 plugin besides few others with "Force install into
>>>>                 shared directories". Hope that doesn't hurt.
>>>>
>>>>                 The starter is in "/usr/share/applications/netbeans
>>>>                 10.0.desktop" with:
>>>>                 [Desktop Entry]
>>>>                 Name=NetBeans IDE 10.0
>>>>                 Comment=Apache NetBeans IDE 10.0
>>>>                 Exec=/opt/netbeans/10.0/bin/netbeans %f
>>>>                 Path=/opt/netbeans/10.0
>>>>                 Terminal=false
>>>>                 Icon=/opt/netbeans/10.0/nb/netbeans.icns
>>>>                 Type=Application
>>>>                 Categories=Java;Development;IDE;
>>>>                 MimeType=application/x-jar;application/x-java;
>>>>
>>>>                 Then I copied the project files into
>>>>                 "~/Projects/ffmpeg/test".
>>>>                 Then I started NB as normal user and created a new
>>>>                 "C/++ Project with existing sources" in
>>>>                 "~/Projects/ffmpeg/test".
>>>>                 It automatically started to build and failed with:
>>>>                 cd '/home/ich/Projects/ffmpeg/test'
>>>>                 /bin/sh ./configure CC=/usr/bin/gcc
>>>>                 CXX=/usr/bin/g++ CFLAGS="-g3 -gdwarf-2"
>>>>                 CXXFLAGS="-g3 -gdwarf-2"
>>>>                 Unknown option "CC=/usr/bin/gcc".
>>>>                 See ./configure --help for available options.
>>>>
>>>>                 RUN FAILED (exit value 1, total time: 293ms)
>>>>
>>>>                 So I had to configure:
>>>>                 Pre-Build -> Command Line: ./configure
>>>>                 Make -> Build Command: make
>>>>                 Make -> Clean Command: make clean
>>>>                 Run -> Command Line: ./ffmpeg -version
>>>>                 Debug -> Debug command: ./ffmpeg_g -version
>>>>
>>>>                 Then: test -> More Build Commands -> Pre-Build:
>>>>                 cd '/home/ich/Projects/ffmpeg/test'
>>>>                 ./configure
>>>>                 install prefix            /usr/local
>>>>                 source path               .
>>>>                 C compiler                gcc
>>>>                 C library                 glibc
>>>>                 ARCH                      x86 (generic)
>>>>                 big-endian                no
>>>>                 runtime cpu detection     yes
>>>>                 standalone assembly       yes
>>>>                 x86 assembler             nasm
>>>>                 [.....]
>>>>                 PRE-BUILD SUCCESSFUL (total time: 21s)
>>>>
>>>>                 Then: test -> Build:
>>>>                 cd '/home/ich/Projects/ffmpeg/test'
>>>>                 make
>>>>                 GEN    libavutil/libavutil.version
>>>>                 GEN    libswscale/libswscale.version
>>>>                 GEN    libswresample/libswresample.version
>>>>                 GEN    libavcodec/libavcodec.version
>>>>                 GEN    libavformat/libavformat.version
>>>>                 GEN    libavfilter/libavfilter.version
>>>>                 GEN    libavdevice/libavdevice.version
>>>>                 CC    libavdevice/alldevices.o
>>>>                 [.....]
>>>>                 LD    ffprobe_g
>>>>                 STRIP    ffprobe
>>>>
>>>>                 BUILD SUCCESSFUL (total time: 24m 28s)
>>>>
>>>>                 Then: test -> Run:
>>>>                 ffmpeg version N-93535-gca448f0b47 Copyright (c)
>>>>                 2000-2019 the FFmpeg developers
>>>>                 built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>>>                 configuration:
>>>>                 libavutil      56. 26.100 / 56. 26.100
>>>>                 libavcodec     58. 48.100 / 58. 48.100
>>>>                 libavformat    58. 26.101 / 58. 26.101
>>>>                 libavdevice    58.  7.100 / 58.  7.100
>>>>                 libavfilter     7. 48.100 /  7. 48.100
>>>>                 libswscale      5.  4.100 /  5.  4.100
>>>>                 libswresample   3.  4.100 /  3.  4.100
>>>>
>>>>                 RUN FINISHED; exit value 0; real time: 190ms; user:
>>>>                 0ms; system: 0ms
>>>>
>>>>                 Then in "fftools/ffmpeg.c" in line 4848
>>>>                 "register_exit(ffmpeg_cleanup);" I set a breakpoint.
>>>>
>>>>                 Then: test -> Debug:
>>>>                 ffmpeg version N-93535-gca448f0b47 Copyright (c)
>>>>                 2000-2019 the FFmpeg developers
>>>>                 built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>>>                 configuration:
>>>>                 libavutil      56. 26.100 / 56. 26.100
>>>>                 libavcodec     58. 48.100 / 58. 48.100
>>>>                 libavformat    58. 26.101 / 58. 26.101
>>>>                 libavdevice    58.  7.100 / 58.  7.100
>>>>                 libavfilter     7. 48.100 /  7. 48.100
>>>>                 libswscale      5.  4.100 /  5.  4.100
>>>>                 libswresample   3.  4.100 /  3.  4.100
>>>>
>>>>                 The program didn't stop at the breakpoint :-(
>>>>                 Shortly in the status bar I saw "Program completed,
>>>>                 exit value 0", but as you can see above there is
>>>>                 missing somthing like:
>>>>                 DEBUG FINISHED; exit value 0; real time: 990ms;
>>>>                 user: 0ms; system: 0ms
>>>>
>>>>                 So bad, that it doesn't work at me. Hopefully we
>>>>                 finde the cause. I'll try to install NB 11.1 for that.
>>>>
>>>>                 -Ulf
>>>>
>>>>                 Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>>>>>                 https://youtu.be/xPvasdbFJAw
>>>>>
>>>>>                 There it is. Tell me what to do differently as
>>>>>                 specifically as possible, if needed, and I'll do
>>>>>                 it to reproduce your requirements.
>>>>>
>>>>>                 Gj
>>>>>
>>>>>                 On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis
>>>>>                 <Ulf.Zibis@cosoco.de <ma...@cosoco.de>>
>>>>>                 wrote:
>>>>>
>>>>>                     Sorry, I think I don't understand your question.
>>>>>
>>>>>                     If you were able to run the bebugger with
>>>>>                     "./ffmpeg --version" then with "./ffmpeg_g -i
>>>>>                     sample.jpg result.jpg" it should be the same
>>>>>                     ... if you have prepared a "sample.jpg" in
>>>>>                     start dir.
>>>>>
>>>>>                     -Ulf
>>>>>
>>>>>                     Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>>>>>                     But how to run the debugger on that?
>>>>>>
>>>>>>                     Gj
>>>>>>
>>>>>>                     On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis
>>>>>>                     <Ulf.Zibis@cosoco.de
>>>>>>                     <ma...@cosoco.de>> wrote:
>>>>>>
>>>>>>                         The simplest command line for real world is:
>>>>>>                         ./ffmpeg_g -i sample.jpg result.jpg
>>>>>>
>>>>>>                         -Ulf
>>>>>>
>>>>>>                         Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>>>>>
>>>>>>>                         The main() function is in fftools/ffmpeg.c
>>>>>>>                         I think you can set a breakpoint there
>>>>>>>                         for a first test. Maybe set it at line
>>>>>>>                         4869 where show_banner(argc, argv,
>>>>>>>                         options); is called, so you can test
>>>>>>>                         what happens when jumping in.
>>>>>>>                         For first try just run ./ffmpeg_g
>>>>>>>                         (stands for gdb and includes symbols)
>>>>>>>                         without arguments or try ./ffmpeg_g
>>>>>>>                         --version.
>>>>>>>
>>>>>>>                         Curious if that works.
>>>>>>>
>>>>>>>                         -Ulf
>>>>>>>
>>
>>             ---------------------------------------------------------------------
>>             To unsubscribe, e-mail:
>>             users-unsubscribe@netbeans.apache.org
>>             <ma...@netbeans.apache.org>
>>             For additional commands, e-mail:
>>             users-help@netbeans.apache.org
>>             <ma...@netbeans.apache.org>
>>
>>             For further information about the NetBeans mailing lists,
>>             visit:
>>             https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
But I'm still missing something like:
DEBUG FINISHED; exit value 0; real time: 990ms; user: 0ms; system: 0ms
when I complete the run with "Continue"

So the "Output - test (Debug)" window hangs in some way.

-Ulf

Am 05.07.19 um 12:26 schrieb Ulf Zibis:
>
> This bug helped!
>
> The trick is to set Make -> Build Result: ffmpeg_g
> Did you have to set this too?
>
> The next try from my side would have been clang.
>
> So now it seems, that I can remove NB 10.0 and use NB 11.1 :-)
>
> Much thanks for your help.
>
> -Ulf
>
> Am 05.07.19 um 11:04 schrieb Geertjan Wielenga:
>> And some tips in this one may be helpful:
>>
>> https://netbeans.org/bugzilla/show_bug.cgi?id=243859
>>
>> Gj
>>
>> On Fri, Jul 5, 2019 at 10:57 AM Geertjan Wielenga
>> <geertjan@apache.org <ma...@apache.org>> wrote:
>>
>>     gdb itself should have a log file too, maybe this
>>     helps: http://wiki.netbeans.org/GdbLog or not, but somewhere when
>>     you do those steps you should get a gdb log, that could help too.
>>     Once you find where it is generated, I'd advise to start from
>>     scratch, i.e, close the IDE, remove the userdir, reproduce the
>>     problem, and generate the gdb log.
>>
>>     And at this point you have enough info for filing an issue,
>>     though it appears to be similar or exactly
>>     this: https://netbeans.org/bugzilla/show_bug.cgi?id=169842
>>
>>     Aside from that, I'd advise switching to clang debugger to see if
>>     that will meet your needs.
>>
>>     Gj
>>
>>     On Fri, Jul 5, 2019 at 10:54 AM Ulf Zibis <Ulf.Zibis@cosoco.de
>>     <ma...@cosoco.de>> wrote:
>>
>>         Hi,
>>
>>         here is the log from fresh userdir with on run of debugger. I
>>         don't see any error, but warnings.
>>
>>         -Ulf
>>
>>         Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
>>>         Well, the solution is like always — start again with a fresh
>>>         userdir and recreate the problem, then you'll have log files
>>>         that we can look at to see the errors generated when the
>>>         problem occurs. Also consider using a different version of
>>>         gdb to see if that makes a difference or switch from gdb to
>>>         clang debugger. In addition look on-line for issues about
>>>         C/C++ debugger breakpoints not being hit in NetBeans, I’ve
>>>         seen a few issues about that, which appears to be the
>>>         problem here.
>>>
>>>         Gj
>>>
>>>
>>>         On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ulf.Zibis@cosoco.de
>>>         <ma...@cosoco.de>> wrote:
>>>
>>>             Hi,
>>>
>>>             now I installed NB 11.1 beta-3 from here:
>>>             https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>>>
>>>             With this I have the same bad results when running the
>>>             debugger. :-(
>>>
>>>             Aside: I said the installer to install into
>>>             /opt/netbeans/11.1/
>>>             but it installed into
>>>             /opt/netbeans/11.1/netbeans/
>>>             Additionally it had deleted
>>>             "/usr/share/applications/netbeans 10.0.desktop"
>>>             and created "/usr/share/applications/NetBeans-11.1.desktop"
>>>             I think, this is not correct.
>>>
>>>             -Ulf
>>>
>>>             Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>>>>
>>>>             Hi Geertjan,
>>>>
>>>>             please note, that I use NetBeans 10 (not 11.1) and I
>>>>             have installed it into "/opt/netbeans/10.0/" as root.
>>>>             Then I started it as root and added the C/C++ plugin
>>>>             besides few others with "Force install into shared
>>>>             directories". Hope that doesn't hurt.
>>>>
>>>>             The starter is in "/usr/share/applications/netbeans
>>>>             10.0.desktop" with:
>>>>             [Desktop Entry]
>>>>             Name=NetBeans IDE 10.0
>>>>             Comment=Apache NetBeans IDE 10.0
>>>>             Exec=/opt/netbeans/10.0/bin/netbeans %f
>>>>             Path=/opt/netbeans/10.0
>>>>             Terminal=false
>>>>             Icon=/opt/netbeans/10.0/nb/netbeans.icns
>>>>             Type=Application
>>>>             Categories=Java;Development;IDE;
>>>>             MimeType=application/x-jar;application/x-java;
>>>>
>>>>             Then I copied the project files into
>>>>             "~/Projects/ffmpeg/test".
>>>>             Then I started NB as normal user and created a new
>>>>             "C/++ Project with existing sources" in
>>>>             "~/Projects/ffmpeg/test".
>>>>             It automatically started to build and failed with:
>>>>             cd '/home/ich/Projects/ffmpeg/test'
>>>>             /bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++
>>>>             CFLAGS="-g3 -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
>>>>             Unknown option "CC=/usr/bin/gcc".
>>>>             See ./configure --help for available options.
>>>>
>>>>             RUN FAILED (exit value 1, total time: 293ms)
>>>>
>>>>             So I had to configure:
>>>>             Pre-Build -> Command Line: ./configure
>>>>             Make -> Build Command: make
>>>>             Make -> Clean Command: make clean
>>>>             Run -> Command Line: ./ffmpeg -version
>>>>             Debug -> Debug command: ./ffmpeg_g -version
>>>>
>>>>             Then: test -> More Build Commands -> Pre-Build:
>>>>             cd '/home/ich/Projects/ffmpeg/test'
>>>>             ./configure
>>>>             install prefix            /usr/local
>>>>             source path               .
>>>>             C compiler                gcc
>>>>             C library                 glibc
>>>>             ARCH                      x86 (generic)
>>>>             big-endian                no
>>>>             runtime cpu detection     yes
>>>>             standalone assembly       yes
>>>>             x86 assembler             nasm
>>>>             [.....]
>>>>             PRE-BUILD SUCCESSFUL (total time: 21s)
>>>>
>>>>             Then: test -> Build:
>>>>             cd '/home/ich/Projects/ffmpeg/test'
>>>>             make
>>>>             GEN    libavutil/libavutil.version
>>>>             GEN    libswscale/libswscale.version
>>>>             GEN    libswresample/libswresample.version
>>>>             GEN    libavcodec/libavcodec.version
>>>>             GEN    libavformat/libavformat.version
>>>>             GEN    libavfilter/libavfilter.version
>>>>             GEN    libavdevice/libavdevice.version
>>>>             CC    libavdevice/alldevices.o
>>>>             [.....]
>>>>             LD    ffprobe_g
>>>>             STRIP    ffprobe
>>>>
>>>>             BUILD SUCCESSFUL (total time: 24m 28s)
>>>>
>>>>             Then: test -> Run:
>>>>             ffmpeg version N-93535-gca448f0b47 Copyright (c)
>>>>             2000-2019 the FFmpeg developers
>>>>             built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>>>             configuration:
>>>>             libavutil      56. 26.100 / 56. 26.100
>>>>             libavcodec     58. 48.100 / 58. 48.100
>>>>             libavformat    58. 26.101 / 58. 26.101
>>>>             libavdevice    58.  7.100 / 58.  7.100
>>>>             libavfilter     7. 48.100 /  7. 48.100
>>>>             libswscale      5.  4.100 /  5.  4.100
>>>>             libswresample   3.  4.100 /  3.  4.100
>>>>
>>>>             RUN FINISHED; exit value 0; real time: 190ms; user:
>>>>             0ms; system: 0ms
>>>>
>>>>             Then in "fftools/ffmpeg.c" in line 4848
>>>>             "register_exit(ffmpeg_cleanup);" I set a breakpoint.
>>>>
>>>>             Then: test -> Debug:
>>>>             ffmpeg version N-93535-gca448f0b47 Copyright (c)
>>>>             2000-2019 the FFmpeg developers
>>>>             built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>>>             configuration:
>>>>             libavutil      56. 26.100 / 56. 26.100
>>>>             libavcodec     58. 48.100 / 58. 48.100
>>>>             libavformat    58. 26.101 / 58. 26.101
>>>>             libavdevice    58.  7.100 / 58.  7.100
>>>>             libavfilter     7. 48.100 /  7. 48.100
>>>>             libswscale      5.  4.100 /  5.  4.100
>>>>             libswresample   3.  4.100 /  3.  4.100
>>>>
>>>>             The program didn't stop at the breakpoint :-(
>>>>             Shortly in the status bar I saw "Program completed,
>>>>             exit value 0", but as you can see above there is
>>>>             missing somthing like:
>>>>             DEBUG FINISHED; exit value 0; real time: 990ms; user:
>>>>             0ms; system: 0ms
>>>>
>>>>             So bad, that it doesn't work at me. Hopefully we finde
>>>>             the cause. I'll try to install NB 11.1 for that.
>>>>
>>>>             -Ulf
>>>>
>>>>             Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>>>>>             https://youtu.be/xPvasdbFJAw
>>>>>
>>>>>             There it is. Tell me what to do differently as
>>>>>             specifically as possible, if needed, and I'll do it to
>>>>>             reproduce your requirements.
>>>>>
>>>>>             Gj
>>>>>
>>>>>             On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis
>>>>>             <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>>>>
>>>>>                 Sorry, I think I don't understand your question.
>>>>>
>>>>>                 If you were able to run the bebugger with
>>>>>                 "./ffmpeg --version" then with "./ffmpeg_g -i
>>>>>                 sample.jpg result.jpg" it should be the same ...
>>>>>                 if you have prepared a "sample.jpg" in start dir.
>>>>>
>>>>>                 -Ulf
>>>>>
>>>>>                 Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>>>>>                 But how to run the debugger on that?
>>>>>>
>>>>>>                 Gj
>>>>>>
>>>>>>                 On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis
>>>>>>                 <Ulf.Zibis@cosoco.de
>>>>>>                 <ma...@cosoco.de>> wrote:
>>>>>>
>>>>>>                     The simplest command line for real world is:
>>>>>>                     ./ffmpeg_g -i sample.jpg result.jpg
>>>>>>
>>>>>>                     -Ulf
>>>>>>
>>>>>>                     Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>>>>>
>>>>>>>                     The main() function is in fftools/ffmpeg.c
>>>>>>>                     I think you can set a breakpoint there for a
>>>>>>>                     first test. Maybe set it at line 4869 where
>>>>>>>                     show_banner(argc, argv, options); is called,
>>>>>>>                     so you can test what happens when jumping in.
>>>>>>>                     For first try just run ./ffmpeg_g (stands
>>>>>>>                     for gdb and includes symbols) without
>>>>>>>                     arguments or try ./ffmpeg_g --version.
>>>>>>>
>>>>>>>                     Curious if that works.
>>>>>>>
>>>>>>>                     -Ulf
>>>>>>>
>>
>>         ---------------------------------------------------------------------
>>         To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>         <ma...@netbeans.apache.org>
>>         For additional commands, e-mail:
>>         users-help@netbeans.apache.org
>>         <ma...@netbeans.apache.org>
>>
>>         For further information about the NetBeans mailing lists, visit:
>>         https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
On Fri, Jul 5, 2019 at 12:27 PM Ulf Zibis <Ul...@cosoco.de> wrote:

> This bug helped!
>
> The trick is to set Make -> Build Result: ffmpeg_g
> Did you have to set this too?
>

For me, it worked without that. But great it's working now for you -- and
thanks for giving me the opportunity to try out C/C++, dbg, the debugger
integration, etc. Learnt a lot since yesterday and I am even more impressed
by NetBeans than I was.

The next try from my side would have been clang.
>
> So now it seems, that I can remove NB 10.0 and use NB 11.1 :-)
>
> Much thanks for your help.
>

Great to hear.

Gj



> -Ulf
> Am 05.07.19 um 11:04 schrieb Geertjan Wielenga:
>
> And some tips in this one may be helpful:
>
> https://netbeans.org/bugzilla/show_bug.cgi?id=243859
>
> Gj
>
> On Fri, Jul 5, 2019 at 10:57 AM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
>> gdb itself should have a log file too, maybe this helps:
>> http://wiki.netbeans.org/GdbLog or not, but somewhere when you do those
>> steps you should get a gdb log, that could help too. Once you find where it
>> is generated, I'd advise to start from scratch, i.e, close the IDE, remove
>> the userdir, reproduce the problem, and generate the gdb log.
>>
>> And at this point you have enough info for filing an issue, though it
>> appears to be similar or exactly this:
>> https://netbeans.org/bugzilla/show_bug.cgi?id=169842
>>
>> Aside from that, I'd advise switching to clang debugger to see if that
>> will meet your needs.
>>
>> Gj
>>
>> On Fri, Jul 5, 2019 at 10:54 AM Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Hi,
>>>
>>> here is the log from fresh userdir with on run of debugger. I don't see
>>> any error, but warnings.
>>>
>>> -Ulf
>>> Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
>>>
>>> Well, the solution is like always — start again with a fresh userdir and
>>> recreate the problem, then you'll have log files that we can look at to see
>>> the errors generated when the problem occurs. Also consider using a
>>> different version of gdb to see if that makes a difference or switch from
>>> gdb to clang debugger. In addition look on-line for issues about C/C++
>>> debugger breakpoints not being hit in NetBeans, I’ve seen a few issues
>>> about that, which appears to be the problem here.
>>>
>>> Gj
>>>
>>>
>>> On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ul...@cosoco.de> wrote:
>>>
>>>> Hi,
>>>>
>>>> now I installed NB 11.1 beta-3 from here:
>>>>
>>>> https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>>>>
>>>> With this I have the same bad results when running the debugger. :-(
>>>>
>>>> Aside: I said the installer to install into
>>>> /opt/netbeans/11.1/
>>>> but it installed into
>>>> /opt/netbeans/11.1/netbeans/
>>>> Additionally it had deleted "/usr/share/applications/netbeans
>>>> 10.0.desktop"
>>>> and created "/usr/share/applications/NetBeans-11.1.desktop"
>>>> I think, this is not correct.
>>>>
>>>> -Ulf
>>>> Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>>>>
>>>> Hi Geertjan,
>>>>
>>>> please note, that I use NetBeans 10 (not 11.1) and I have installed it
>>>> into "/opt/netbeans/10.0/" as root. Then I started it as root and added the
>>>> C/C++ plugin besides few others with "Force install into shared
>>>> directories". Hope that doesn't hurt.
>>>>
>>>> The starter is in "/usr/share/applications/netbeans 10.0.desktop" with:
>>>> [Desktop Entry]
>>>> Name=NetBeans IDE 10.0
>>>> Comment=Apache NetBeans IDE 10.0
>>>> Exec=/opt/netbeans/10.0/bin/netbeans %f
>>>> Path=/opt/netbeans/10.0
>>>> Terminal=false
>>>> Icon=/opt/netbeans/10.0/nb/netbeans.icns
>>>> Type=Application
>>>> Categories=Java;Development;IDE;
>>>> MimeType=application/x-jar;application/x-java;
>>>>
>>>> Then I copied the project files into "~/Projects/ffmpeg/test".
>>>> Then I started NB as normal user and created a new "C/++ Project with
>>>> existing sources" in "~/Projects/ffmpeg/test".
>>>> It automatically started to build and failed with:
>>>> cd '/home/ich/Projects/ffmpeg/test'
>>>> /bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++ CFLAGS="-g3
>>>> -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
>>>> Unknown option "CC=/usr/bin/gcc".
>>>> See ./configure --help for available options.
>>>>
>>>> RUN FAILED (exit value 1, total time: 293ms)
>>>>
>>>> So I had to configure:
>>>> Pre-Build -> Command Line: ./configure
>>>> Make -> Build Command: make
>>>> Make -> Clean Command: make clean
>>>> Run -> Command Line: ./ffmpeg -version
>>>> Debug -> Debug command: ./ffmpeg_g -version
>>>>
>>>> Then: test -> More Build Commands -> Pre-Build:
>>>> cd '/home/ich/Projects/ffmpeg/test'
>>>> ./configure
>>>> install prefix            /usr/local
>>>> source path               .
>>>> C compiler                gcc
>>>> C library                 glibc
>>>> ARCH                      x86 (generic)
>>>> big-endian                no
>>>> runtime cpu detection     yes
>>>> standalone assembly       yes
>>>> x86 assembler             nasm
>>>> [.....]
>>>> PRE-BUILD SUCCESSFUL (total time: 21s)
>>>>
>>>> Then: test -> Build:
>>>> cd '/home/ich/Projects/ffmpeg/test'
>>>> make
>>>> GEN    libavutil/libavutil.version
>>>> GEN    libswscale/libswscale.version
>>>> GEN    libswresample/libswresample.version
>>>> GEN    libavcodec/libavcodec.version
>>>> GEN    libavformat/libavformat.version
>>>> GEN    libavfilter/libavfilter.version
>>>> GEN    libavdevice/libavdevice.version
>>>> CC    libavdevice/alldevices.o
>>>> [.....]
>>>> LD    ffprobe_g
>>>> STRIP    ffprobe
>>>>
>>>> BUILD SUCCESSFUL (total time: 24m 28s)
>>>>
>>>> Then: test -> Run:
>>>> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
>>>> developers
>>>> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>>> configuration:
>>>> libavutil      56. 26.100 / 56. 26.100
>>>> libavcodec     58. 48.100 / 58. 48.100
>>>> libavformat    58. 26.101 / 58. 26.101
>>>> libavdevice    58.  7.100 / 58.  7.100
>>>> libavfilter     7. 48.100 /  7. 48.100
>>>> libswscale      5.  4.100 /  5.  4.100
>>>> libswresample   3.  4.100 /  3.  4.100
>>>>
>>>> RUN FINISHED; exit value 0; real time: 190ms; user: 0ms; system: 0ms
>>>>
>>>> Then in "fftools/ffmpeg.c" in line 4848
>>>> "register_exit(ffmpeg_cleanup);" I set a breakpoint.
>>>>
>>>> Then: test -> Debug:
>>>> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
>>>> developers
>>>> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>>> configuration:
>>>> libavutil      56. 26.100 / 56. 26.100
>>>> libavcodec     58. 48.100 / 58. 48.100
>>>> libavformat    58. 26.101 / 58. 26.101
>>>> libavdevice    58.  7.100 / 58.  7.100
>>>> libavfilter     7. 48.100 /  7. 48.100
>>>> libswscale      5.  4.100 /  5.  4.100
>>>> libswresample   3.  4.100 /  3.  4.100
>>>>
>>>> The program didn't stop at the breakpoint :-(
>>>> Shortly in the status bar I saw "Program completed, exit value 0", but
>>>> as you can see above there is missing somthing like:
>>>> DEBUG FINISHED; exit value 0; real time: 990ms; user: 0ms; system: 0ms
>>>>
>>>> So bad, that it doesn't work at me. Hopefully we finde the cause. I'll
>>>> try to install NB 11.1 for that.
>>>>
>>>> -Ulf
>>>> Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>>>>
>>>> https://youtu.be/xPvasdbFJAw
>>>>
>>>> There it is. Tell me what to do differently as specifically as
>>>> possible, if needed, and I'll do it to reproduce your requirements.
>>>>
>>>> Gj
>>>>
>>>> On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>>>
>>>>> Sorry, I think I don't understand your question.
>>>>>
>>>>> If you were able to run the bebugger with "./ffmpeg --version" then
>>>>> with "./ffmpeg_g -i sample.jpg result.jpg" it should be the same ... if you
>>>>> have prepared a "sample.jpg" in start dir.
>>>>>
>>>>> -Ulf
>>>>> Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>>>>
>>>>> But how to run the debugger on that?
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>>>>
>>>>>> The simplest command line for real world is:
>>>>>> ./ffmpeg_g -i sample.jpg result.jpg
>>>>>>
>>>>>> -Ulf
>>>>>> Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>>>>
>>>>>> The main() function is in fftools/ffmpeg.c
>>>>>> I think you can set a breakpoint there for a first test. Maybe set it
>>>>>> at line 4869 where show_banner(argc, argv, options); is called, so you can
>>>>>> test what happens when jumping in.
>>>>>> For first try just run ./ffmpeg_g (stands for gdb and includes
>>>>>> symbols) without arguments or try ./ffmpeg_g --version.
>>>>>>
>>>>>> Curious if that works.
>>>>>>
>>>>>> -Ulf
>>>>>>
>>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
This bug helped!

The trick is to set Make -> Build Result: ffmpeg_g
Did you have to set this too?

The next try from my side would have been clang.

So now it seems, that I can remove NB 10.0 and use NB 11.1 :-)

Much thanks for your help.

-Ulf

Am 05.07.19 um 11:04 schrieb Geertjan Wielenga:
> And some tips in this one may be helpful:
>
> https://netbeans.org/bugzilla/show_bug.cgi?id=243859
>
> Gj
>
> On Fri, Jul 5, 2019 at 10:57 AM Geertjan Wielenga <geertjan@apache.org
> <ma...@apache.org>> wrote:
>
>     gdb itself should have a log file too, maybe this
>     helps: http://wiki.netbeans.org/GdbLog or not, but somewhere when
>     you do those steps you should get a gdb log, that could help too.
>     Once you find where it is generated, I'd advise to start from
>     scratch, i.e, close the IDE, remove the userdir, reproduce the
>     problem, and generate the gdb log.
>
>     And at this point you have enough info for filing an issue, though
>     it appears to be similar or exactly
>     this: https://netbeans.org/bugzilla/show_bug.cgi?id=169842
>
>     Aside from that, I'd advise switching to clang debugger to see if
>     that will meet your needs.
>
>     Gj
>
>     On Fri, Jul 5, 2019 at 10:54 AM Ulf Zibis <Ulf.Zibis@cosoco.de
>     <ma...@cosoco.de>> wrote:
>
>         Hi,
>
>         here is the log from fresh userdir with on run of debugger. I
>         don't see any error, but warnings.
>
>         -Ulf
>
>         Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
>>         Well, the solution is like always — start again with a fresh
>>         userdir and recreate the problem, then you'll have log files
>>         that we can look at to see the errors generated when the
>>         problem occurs. Also consider using a different version of
>>         gdb to see if that makes a difference or switch from gdb to
>>         clang debugger. In addition look on-line for issues about
>>         C/C++ debugger breakpoints not being hit in NetBeans, I’ve
>>         seen a few issues about that, which appears to be the problem
>>         here.
>>
>>         Gj
>>
>>
>>         On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ulf.Zibis@cosoco.de
>>         <ma...@cosoco.de>> wrote:
>>
>>             Hi,
>>
>>             now I installed NB 11.1 beta-3 from here:
>>             https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>>
>>             With this I have the same bad results when running the
>>             debugger. :-(
>>
>>             Aside: I said the installer to install into
>>             /opt/netbeans/11.1/
>>             but it installed into
>>             /opt/netbeans/11.1/netbeans/
>>             Additionally it had deleted
>>             "/usr/share/applications/netbeans 10.0.desktop"
>>             and created "/usr/share/applications/NetBeans-11.1.desktop"
>>             I think, this is not correct.
>>
>>             -Ulf
>>
>>             Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>>>
>>>             Hi Geertjan,
>>>
>>>             please note, that I use NetBeans 10 (not 11.1) and I
>>>             have installed it into "/opt/netbeans/10.0/" as root.
>>>             Then I started it as root and added the C/C++ plugin
>>>             besides few others with "Force install into shared
>>>             directories". Hope that doesn't hurt.
>>>
>>>             The starter is in "/usr/share/applications/netbeans
>>>             10.0.desktop" with:
>>>             [Desktop Entry]
>>>             Name=NetBeans IDE 10.0
>>>             Comment=Apache NetBeans IDE 10.0
>>>             Exec=/opt/netbeans/10.0/bin/netbeans %f
>>>             Path=/opt/netbeans/10.0
>>>             Terminal=false
>>>             Icon=/opt/netbeans/10.0/nb/netbeans.icns
>>>             Type=Application
>>>             Categories=Java;Development;IDE;
>>>             MimeType=application/x-jar;application/x-java;
>>>
>>>             Then I copied the project files into
>>>             "~/Projects/ffmpeg/test".
>>>             Then I started NB as normal user and created a new "C/++
>>>             Project with existing sources" in "~/Projects/ffmpeg/test".
>>>             It automatically started to build and failed with:
>>>             cd '/home/ich/Projects/ffmpeg/test'
>>>             /bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++
>>>             CFLAGS="-g3 -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
>>>             Unknown option "CC=/usr/bin/gcc".
>>>             See ./configure --help for available options.
>>>
>>>             RUN FAILED (exit value 1, total time: 293ms)
>>>
>>>             So I had to configure:
>>>             Pre-Build -> Command Line: ./configure
>>>             Make -> Build Command: make
>>>             Make -> Clean Command: make clean
>>>             Run -> Command Line: ./ffmpeg -version
>>>             Debug -> Debug command: ./ffmpeg_g -version
>>>
>>>             Then: test -> More Build Commands -> Pre-Build:
>>>             cd '/home/ich/Projects/ffmpeg/test'
>>>             ./configure
>>>             install prefix            /usr/local
>>>             source path               .
>>>             C compiler                gcc
>>>             C library                 glibc
>>>             ARCH                      x86 (generic)
>>>             big-endian                no
>>>             runtime cpu detection     yes
>>>             standalone assembly       yes
>>>             x86 assembler             nasm
>>>             [.....]
>>>             PRE-BUILD SUCCESSFUL (total time: 21s)
>>>
>>>             Then: test -> Build:
>>>             cd '/home/ich/Projects/ffmpeg/test'
>>>             make
>>>             GEN    libavutil/libavutil.version
>>>             GEN    libswscale/libswscale.version
>>>             GEN    libswresample/libswresample.version
>>>             GEN    libavcodec/libavcodec.version
>>>             GEN    libavformat/libavformat.version
>>>             GEN    libavfilter/libavfilter.version
>>>             GEN    libavdevice/libavdevice.version
>>>             CC    libavdevice/alldevices.o
>>>             [.....]
>>>             LD    ffprobe_g
>>>             STRIP    ffprobe
>>>
>>>             BUILD SUCCESSFUL (total time: 24m 28s)
>>>
>>>             Then: test -> Run:
>>>             ffmpeg version N-93535-gca448f0b47 Copyright (c)
>>>             2000-2019 the FFmpeg developers
>>>             built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>>             configuration:
>>>             libavutil      56. 26.100 / 56. 26.100
>>>             libavcodec     58. 48.100 / 58. 48.100
>>>             libavformat    58. 26.101 / 58. 26.101
>>>             libavdevice    58.  7.100 / 58.  7.100
>>>             libavfilter     7. 48.100 /  7. 48.100
>>>             libswscale      5.  4.100 /  5.  4.100
>>>             libswresample   3.  4.100 /  3.  4.100
>>>
>>>             RUN FINISHED; exit value 0; real time: 190ms; user: 0ms;
>>>             system: 0ms
>>>
>>>             Then in "fftools/ffmpeg.c" in line 4848
>>>             "register_exit(ffmpeg_cleanup);" I set a breakpoint.
>>>
>>>             Then: test -> Debug:
>>>             ffmpeg version N-93535-gca448f0b47 Copyright (c)
>>>             2000-2019 the FFmpeg developers
>>>             built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>>             configuration:
>>>             libavutil      56. 26.100 / 56. 26.100
>>>             libavcodec     58. 48.100 / 58. 48.100
>>>             libavformat    58. 26.101 / 58. 26.101
>>>             libavdevice    58.  7.100 / 58.  7.100
>>>             libavfilter     7. 48.100 /  7. 48.100
>>>             libswscale      5.  4.100 /  5.  4.100
>>>             libswresample   3.  4.100 /  3.  4.100
>>>
>>>             The program didn't stop at the breakpoint :-(
>>>             Shortly in the status bar I saw "Program completed, exit
>>>             value 0", but as you can see above there is missing
>>>             somthing like:
>>>             DEBUG FINISHED; exit value 0; real time: 990ms; user:
>>>             0ms; system: 0ms
>>>
>>>             So bad, that it doesn't work at me. Hopefully we finde
>>>             the cause. I'll try to install NB 11.1 for that.
>>>
>>>             -Ulf
>>>
>>>             Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>>>>             https://youtu.be/xPvasdbFJAw
>>>>
>>>>             There it is. Tell me what to do differently as
>>>>             specifically as possible, if needed, and I'll do it to
>>>>             reproduce your requirements.
>>>>
>>>>             Gj
>>>>
>>>>             On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis
>>>>             <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>>>
>>>>                 Sorry, I think I don't understand your question.
>>>>
>>>>                 If you were able to run the bebugger with "./ffmpeg
>>>>                 --version" then with "./ffmpeg_g -i sample.jpg
>>>>                 result.jpg" it should be the same ... if you have
>>>>                 prepared a "sample.jpg" in start dir.
>>>>
>>>>                 -Ulf
>>>>
>>>>                 Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>>>>                 But how to run the debugger on that?
>>>>>
>>>>>                 Gj
>>>>>
>>>>>                 On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis
>>>>>                 <Ulf.Zibis@cosoco.de <ma...@cosoco.de>>
>>>>>                 wrote:
>>>>>
>>>>>                     The simplest command line for real world is:
>>>>>                     ./ffmpeg_g -i sample.jpg result.jpg
>>>>>
>>>>>                     -Ulf
>>>>>
>>>>>                     Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>>>>
>>>>>>                     The main() function is in fftools/ffmpeg.c
>>>>>>                     I think you can set a breakpoint there for a
>>>>>>                     first test. Maybe set it at line 4869 where
>>>>>>                     show_banner(argc, argv, options); is called,
>>>>>>                     so you can test what happens when jumping in.
>>>>>>                     For first try just run ./ffmpeg_g (stands for
>>>>>>                     gdb and includes symbols) without arguments
>>>>>>                     or try ./ffmpeg_g --version.
>>>>>>
>>>>>>                     Curious if that works.
>>>>>>
>>>>>>                     -Ulf
>>>>>>
>
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>         <ma...@netbeans.apache.org>
>         For additional commands, e-mail:
>         users-help@netbeans.apache.org
>         <ma...@netbeans.apache.org>
>
>         For further information about the NetBeans mailing lists, visit:
>         https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
And some tips in this one may be helpful:

https://netbeans.org/bugzilla/show_bug.cgi?id=243859

Gj

On Fri, Jul 5, 2019 at 10:57 AM Geertjan Wielenga <ge...@apache.org>
wrote:

> gdb itself should have a log file too, maybe this helps:
> http://wiki.netbeans.org/GdbLog or not, but somewhere when you do those
> steps you should get a gdb log, that could help too. Once you find where it
> is generated, I'd advise to start from scratch, i.e, close the IDE, remove
> the userdir, reproduce the problem, and generate the gdb log.
>
> And at this point you have enough info for filing an issue, though it
> appears to be similar or exactly this:
> https://netbeans.org/bugzilla/show_bug.cgi?id=169842
>
> Aside from that, I'd advise switching to clang debugger to see if that
> will meet your needs.
>
> Gj
>
> On Fri, Jul 5, 2019 at 10:54 AM Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Hi,
>>
>> here is the log from fresh userdir with on run of debugger. I don't see
>> any error, but warnings.
>>
>> -Ulf
>> Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
>>
>> Well, the solution is like always — start again with a fresh userdir and
>> recreate the problem, then you'll have log files that we can look at to see
>> the errors generated when the problem occurs. Also consider using a
>> different version of gdb to see if that makes a difference or switch from
>> gdb to clang debugger. In addition look on-line for issues about C/C++
>> debugger breakpoints not being hit in NetBeans, I’ve seen a few issues
>> about that, which appears to be the problem here.
>>
>> Gj
>>
>>
>> On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Hi,
>>>
>>> now I installed NB 11.1 beta-3 from here:
>>>
>>> https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>>>
>>> With this I have the same bad results when running the debugger. :-(
>>>
>>> Aside: I said the installer to install into
>>> /opt/netbeans/11.1/
>>> but it installed into
>>> /opt/netbeans/11.1/netbeans/
>>> Additionally it had deleted "/usr/share/applications/netbeans
>>> 10.0.desktop"
>>> and created "/usr/share/applications/NetBeans-11.1.desktop"
>>> I think, this is not correct.
>>>
>>> -Ulf
>>> Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>>>
>>> Hi Geertjan,
>>>
>>> please note, that I use NetBeans 10 (not 11.1) and I have installed it
>>> into "/opt/netbeans/10.0/" as root. Then I started it as root and added the
>>> C/C++ plugin besides few others with "Force install into shared
>>> directories". Hope that doesn't hurt.
>>>
>>> The starter is in "/usr/share/applications/netbeans 10.0.desktop" with:
>>> [Desktop Entry]
>>> Name=NetBeans IDE 10.0
>>> Comment=Apache NetBeans IDE 10.0
>>> Exec=/opt/netbeans/10.0/bin/netbeans %f
>>> Path=/opt/netbeans/10.0
>>> Terminal=false
>>> Icon=/opt/netbeans/10.0/nb/netbeans.icns
>>> Type=Application
>>> Categories=Java;Development;IDE;
>>> MimeType=application/x-jar;application/x-java;
>>>
>>> Then I copied the project files into "~/Projects/ffmpeg/test".
>>> Then I started NB as normal user and created a new "C/++ Project with
>>> existing sources" in "~/Projects/ffmpeg/test".
>>> It automatically started to build and failed with:
>>> cd '/home/ich/Projects/ffmpeg/test'
>>> /bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++ CFLAGS="-g3
>>> -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
>>> Unknown option "CC=/usr/bin/gcc".
>>> See ./configure --help for available options.
>>>
>>> RUN FAILED (exit value 1, total time: 293ms)
>>>
>>> So I had to configure:
>>> Pre-Build -> Command Line: ./configure
>>> Make -> Build Command: make
>>> Make -> Clean Command: make clean
>>> Run -> Command Line: ./ffmpeg -version
>>> Debug -> Debug command: ./ffmpeg_g -version
>>>
>>> Then: test -> More Build Commands -> Pre-Build:
>>> cd '/home/ich/Projects/ffmpeg/test'
>>> ./configure
>>> install prefix            /usr/local
>>> source path               .
>>> C compiler                gcc
>>> C library                 glibc
>>> ARCH                      x86 (generic)
>>> big-endian                no
>>> runtime cpu detection     yes
>>> standalone assembly       yes
>>> x86 assembler             nasm
>>> [.....]
>>> PRE-BUILD SUCCESSFUL (total time: 21s)
>>>
>>> Then: test -> Build:
>>> cd '/home/ich/Projects/ffmpeg/test'
>>> make
>>> GEN    libavutil/libavutil.version
>>> GEN    libswscale/libswscale.version
>>> GEN    libswresample/libswresample.version
>>> GEN    libavcodec/libavcodec.version
>>> GEN    libavformat/libavformat.version
>>> GEN    libavfilter/libavfilter.version
>>> GEN    libavdevice/libavdevice.version
>>> CC    libavdevice/alldevices.o
>>> [.....]
>>> LD    ffprobe_g
>>> STRIP    ffprobe
>>>
>>> BUILD SUCCESSFUL (total time: 24m 28s)
>>>
>>> Then: test -> Run:
>>> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
>>> developers
>>> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>> configuration:
>>> libavutil      56. 26.100 / 56. 26.100
>>> libavcodec     58. 48.100 / 58. 48.100
>>> libavformat    58. 26.101 / 58. 26.101
>>> libavdevice    58.  7.100 / 58.  7.100
>>> libavfilter     7. 48.100 /  7. 48.100
>>> libswscale      5.  4.100 /  5.  4.100
>>> libswresample   3.  4.100 /  3.  4.100
>>>
>>> RUN FINISHED; exit value 0; real time: 190ms; user: 0ms; system: 0ms
>>>
>>> Then in "fftools/ffmpeg.c" in line 4848 "register_exit(ffmpeg_cleanup);"
>>> I set a breakpoint.
>>>
>>> Then: test -> Debug:
>>> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
>>> developers
>>> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>> configuration:
>>> libavutil      56. 26.100 / 56. 26.100
>>> libavcodec     58. 48.100 / 58. 48.100
>>> libavformat    58. 26.101 / 58. 26.101
>>> libavdevice    58.  7.100 / 58.  7.100
>>> libavfilter     7. 48.100 /  7. 48.100
>>> libswscale      5.  4.100 /  5.  4.100
>>> libswresample   3.  4.100 /  3.  4.100
>>>
>>> The program didn't stop at the breakpoint :-(
>>> Shortly in the status bar I saw "Program completed, exit value 0", but
>>> as you can see above there is missing somthing like:
>>> DEBUG FINISHED; exit value 0; real time: 990ms; user: 0ms; system: 0ms
>>>
>>> So bad, that it doesn't work at me. Hopefully we finde the cause. I'll
>>> try to install NB 11.1 for that.
>>>
>>> -Ulf
>>> Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>>>
>>> https://youtu.be/xPvasdbFJAw
>>>
>>> There it is. Tell me what to do differently as specifically as possible,
>>> if needed, and I'll do it to reproduce your requirements.
>>>
>>> Gj
>>>
>>> On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>>
>>>> Sorry, I think I don't understand your question.
>>>>
>>>> If you were able to run the bebugger with "./ffmpeg --version" then
>>>> with "./ffmpeg_g -i sample.jpg result.jpg" it should be the same ... if you
>>>> have prepared a "sample.jpg" in start dir.
>>>>
>>>> -Ulf
>>>> Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>>>
>>>> But how to run the debugger on that?
>>>>
>>>> Gj
>>>>
>>>> On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>>>
>>>>> The simplest command line for real world is:
>>>>> ./ffmpeg_g -i sample.jpg result.jpg
>>>>>
>>>>> -Ulf
>>>>> Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>>>
>>>>> The main() function is in fftools/ffmpeg.c
>>>>> I think you can set a breakpoint there for a first test. Maybe set it
>>>>> at line 4869 where show_banner(argc, argv, options); is called, so you can
>>>>> test what happens when jumping in.
>>>>> For first try just run ./ffmpeg_g (stands for gdb and includes
>>>>> symbols) without arguments or try ./ffmpeg_g --version.
>>>>>
>>>>> Curious if that works.
>>>>>
>>>>> -Ulf
>>>>>
>>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
I'd spend some time googling texts like this, if I were you: "symbol table
gdb netbeans"

And other things, based on the error messages you find in gdb.log, related
to 'gdb' and 'symbol table' and 'netbeans'.

Also, please, why not explore using the clang debugger which is also
supported by NetBeans, if what you want to do is debug you can also try a
different debugger.

Bear in mind that gdb or any other external technology is always going to
be fragile in relation to NetBeans, since these external technologies can
change and update anything at all from one release to the next and then the
integration with a tool like NetBeans may or may not be broken -- so it
makes sense to try all alternatives to one tool, e.g., gdb, when it doesn't
work, i.e., try clang too.

Gj

On Fri, Jul 5, 2019 at 11:43 AM Ulf Zibis <Ul...@cosoco.de> wrote:

> I've found the gdb log.
>
> Interesting parts:
> 10-file-symbol-file "/home/ich/Projects/ffmpeg/test"
> 11-file-exec-file  "./ffmpeg_g"
>
> (gdb)
> 10^error,msg="/home/ich/Projects/ffmpeg/test: Ist ein Verzeichnis." --->
> english: "... is a direktory"
> (gdb)
> 11^done
> 12-file-list-exec-source-file
> 13-environment-cd /home/ich/Projects/ffmpeg/test
> 14-exec-arguments "-version"
> 15-break-insert -f "/home/ich/Projects/ffmpeg/test/fftools/ffmpeg.c:4848"
> (gdb)
> 12^error,msg="Es ist keine Symboltabelle geladen. Benutzen Sie den
> \302\273file\302\253-Befehl." ---> english: "... use the
> \302\273file\302\253-command."
>
> Have you any idea how to correct that?
>
> -Ulf
> Am 05.07.19 um 10:57 schrieb Geertjan Wielenga:
>
> gdb itself should have a log file too, maybe this helps:
> http://wiki.netbeans.org/GdbLog or not, but somewhere when you do those
> steps you should get a gdb log, that could help too. Once you find where it
> is generated, I'd advise to start from scratch, i.e, close the IDE, remove
> the userdir, reproduce the problem, and generate the gdb log.
>
> And at this point you have enough info for filing an issue, though it
> appears to be similar or exactly this:
> https://netbeans.org/bugzilla/show_bug.cgi?id=169842
>
> Aside from that, I'd advise switching to clang debugger to see if that
> will meet your needs.
>
> Gj
>
> On Fri, Jul 5, 2019 at 10:54 AM Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Hi,
>>
>> here is the log from fresh userdir with on run of debugger. I don't see
>> any error, but warnings.
>>
>> -Ulf
>> Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
>>
>> Well, the solution is like always — start again with a fresh userdir and
>> recreate the problem, then you'll have log files that we can look at to see
>> the errors generated when the problem occurs. Also consider using a
>> different version of gdb to see if that makes a difference or switch from
>> gdb to clang debugger. In addition look on-line for issues about C/C++
>> debugger breakpoints not being hit in NetBeans, I’ve seen a few issues
>> about that, which appears to be the problem here.
>>
>> Gj
>>
>>
>> On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Hi,
>>>
>>> now I installed NB 11.1 beta-3 from here:
>>>
>>> https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>>>
>>> With this I have the same bad results when running the debugger. :-(
>>>
>>> Aside: I said the installer to install into
>>> /opt/netbeans/11.1/
>>> but it installed into
>>> /opt/netbeans/11.1/netbeans/
>>> Additionally it had deleted "/usr/share/applications/netbeans
>>> 10.0.desktop"
>>> and created "/usr/share/applications/NetBeans-11.1.desktop"
>>> I think, this is not correct.
>>>
>>> -Ulf
>>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
I've found the gdb log.

Interesting parts:
10-file-symbol-file "/home/ich/Projects/ffmpeg/test"
11-file-exec-file  "./ffmpeg_g"

(gdb)
10^error,msg="/home/ich/Projects/ffmpeg/test: Ist ein Verzeichnis." --->
english: "... is a direktory"
(gdb)
11^done
12-file-list-exec-source-file
13-environment-cd /home/ich/Projects/ffmpeg/test
14-exec-arguments "-version"
15-break-insert -f "/home/ich/Projects/ffmpeg/test/fftools/ffmpeg.c:4848"
(gdb)
12^error,msg="Es ist keine Symboltabelle geladen. Benutzen Sie den
\302\273file\302\253-Befehl." ---> english: "... use the
\302\273file\302\253-command."

Have you any idea how to correct that?

-Ulf

Am 05.07.19 um 10:57 schrieb Geertjan Wielenga:
> gdb itself should have a log file too, maybe this
> helps: http://wiki.netbeans.org/GdbLog or not, but somewhere when you
> do those steps you should get a gdb log, that could help too. Once you
> find where it is generated, I'd advise to start from scratch, i.e,
> close the IDE, remove the userdir, reproduce the problem, and generate
> the gdb log.
>
> And at this point you have enough info for filing an issue, though it
> appears to be similar or exactly
> this: https://netbeans.org/bugzilla/show_bug.cgi?id=169842
>
> Aside from that, I'd advise switching to clang debugger to see if that
> will meet your needs.
>
> Gj
>
> On Fri, Jul 5, 2019 at 10:54 AM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     Hi,
>
>     here is the log from fresh userdir with on run of debugger. I
>     don't see any error, but warnings.
>
>     -Ulf
>
>     Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
>>     Well, the solution is like always — start again with a fresh
>>     userdir and recreate the problem, then you'll have log files that
>>     we can look at to see the errors generated when the problem
>>     occurs. Also consider using a different version of gdb to see if
>>     that makes a difference or switch from gdb to clang debugger. In
>>     addition look on-line for issues about C/C++ debugger breakpoints
>>     not being hit in NetBeans, I’ve seen a few issues about that,
>>     which appears to be the problem here.
>>
>>     Gj
>>
>>
>>     On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ulf.Zibis@cosoco.de
>>     <ma...@cosoco.de>> wrote:
>>
>>         Hi,
>>
>>         now I installed NB 11.1 beta-3 from here:
>>         https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>>
>>         With this I have the same bad results when running the
>>         debugger. :-(
>>
>>         Aside: I said the installer to install into
>>         /opt/netbeans/11.1/
>>         but it installed into
>>         /opt/netbeans/11.1/netbeans/
>>         Additionally it had deleted "/usr/share/applications/netbeans
>>         10.0.desktop"
>>         and created "/usr/share/applications/NetBeans-11.1.desktop"
>>         I think, this is not correct.
>>
>>         -Ulf
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
gdb itself should have a log file too, maybe this helps:
http://wiki.netbeans.org/GdbLog or not, but somewhere when you do those
steps you should get a gdb log, that could help too. Once you find where it
is generated, I'd advise to start from scratch, i.e, close the IDE, remove
the userdir, reproduce the problem, and generate the gdb log.

And at this point you have enough info for filing an issue, though it
appears to be similar or exactly this:
https://netbeans.org/bugzilla/show_bug.cgi?id=169842

Aside from that, I'd advise switching to clang debugger to see if that will
meet your needs.

Gj

On Fri, Jul 5, 2019 at 10:54 AM Ulf Zibis <Ul...@cosoco.de> wrote:

> Hi,
>
> here is the log from fresh userdir with on run of debugger. I don't see
> any error, but warnings.
>
> -Ulf
> Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
>
> Well, the solution is like always — start again with a fresh userdir and
> recreate the problem, then you'll have log files that we can look at to see
> the errors generated when the problem occurs. Also consider using a
> different version of gdb to see if that makes a difference or switch from
> gdb to clang debugger. In addition look on-line for issues about C/C++
> debugger breakpoints not being hit in NetBeans, I’ve seen a few issues
> about that, which appears to be the problem here.
>
> Gj
>
>
> On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Hi,
>>
>> now I installed NB 11.1 beta-3 from here:
>>
>> https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>>
>> With this I have the same bad results when running the debugger. :-(
>>
>> Aside: I said the installer to install into
>> /opt/netbeans/11.1/
>> but it installed into
>> /opt/netbeans/11.1/netbeans/
>> Additionally it had deleted "/usr/share/applications/netbeans
>> 10.0.desktop"
>> and created "/usr/share/applications/NetBeans-11.1.desktop"
>> I think, this is not correct.
>>
>> -Ulf
>> Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>>
>> Hi Geertjan,
>>
>> please note, that I use NetBeans 10 (not 11.1) and I have installed it
>> into "/opt/netbeans/10.0/" as root. Then I started it as root and added the
>> C/C++ plugin besides few others with "Force install into shared
>> directories". Hope that doesn't hurt.
>>
>> The starter is in "/usr/share/applications/netbeans 10.0.desktop" with:
>> [Desktop Entry]
>> Name=NetBeans IDE 10.0
>> Comment=Apache NetBeans IDE 10.0
>> Exec=/opt/netbeans/10.0/bin/netbeans %f
>> Path=/opt/netbeans/10.0
>> Terminal=false
>> Icon=/opt/netbeans/10.0/nb/netbeans.icns
>> Type=Application
>> Categories=Java;Development;IDE;
>> MimeType=application/x-jar;application/x-java;
>>
>> Then I copied the project files into "~/Projects/ffmpeg/test".
>> Then I started NB as normal user and created a new "C/++ Project with
>> existing sources" in "~/Projects/ffmpeg/test".
>> It automatically started to build and failed with:
>> cd '/home/ich/Projects/ffmpeg/test'
>> /bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++ CFLAGS="-g3
>> -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
>> Unknown option "CC=/usr/bin/gcc".
>> See ./configure --help for available options.
>>
>> RUN FAILED (exit value 1, total time: 293ms)
>>
>> So I had to configure:
>> Pre-Build -> Command Line: ./configure
>> Make -> Build Command: make
>> Make -> Clean Command: make clean
>> Run -> Command Line: ./ffmpeg -version
>> Debug -> Debug command: ./ffmpeg_g -version
>>
>> Then: test -> More Build Commands -> Pre-Build:
>> cd '/home/ich/Projects/ffmpeg/test'
>> ./configure
>> install prefix            /usr/local
>> source path               .
>> C compiler                gcc
>> C library                 glibc
>> ARCH                      x86 (generic)
>> big-endian                no
>> runtime cpu detection     yes
>> standalone assembly       yes
>> x86 assembler             nasm
>> [.....]
>> PRE-BUILD SUCCESSFUL (total time: 21s)
>>
>> Then: test -> Build:
>> cd '/home/ich/Projects/ffmpeg/test'
>> make
>> GEN    libavutil/libavutil.version
>> GEN    libswscale/libswscale.version
>> GEN    libswresample/libswresample.version
>> GEN    libavcodec/libavcodec.version
>> GEN    libavformat/libavformat.version
>> GEN    libavfilter/libavfilter.version
>> GEN    libavdevice/libavdevice.version
>> CC    libavdevice/alldevices.o
>> [.....]
>> LD    ffprobe_g
>> STRIP    ffprobe
>>
>> BUILD SUCCESSFUL (total time: 24m 28s)
>>
>> Then: test -> Run:
>> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
>> developers
>> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>> configuration:
>> libavutil      56. 26.100 / 56. 26.100
>> libavcodec     58. 48.100 / 58. 48.100
>> libavformat    58. 26.101 / 58. 26.101
>> libavdevice    58.  7.100 / 58.  7.100
>> libavfilter     7. 48.100 /  7. 48.100
>> libswscale      5.  4.100 /  5.  4.100
>> libswresample   3.  4.100 /  3.  4.100
>>
>> RUN FINISHED; exit value 0; real time: 190ms; user: 0ms; system: 0ms
>>
>> Then in "fftools/ffmpeg.c" in line 4848 "register_exit(ffmpeg_cleanup);"
>> I set a breakpoint.
>>
>> Then: test -> Debug:
>> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
>> developers
>> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>> configuration:
>> libavutil      56. 26.100 / 56. 26.100
>> libavcodec     58. 48.100 / 58. 48.100
>> libavformat    58. 26.101 / 58. 26.101
>> libavdevice    58.  7.100 / 58.  7.100
>> libavfilter     7. 48.100 /  7. 48.100
>> libswscale      5.  4.100 /  5.  4.100
>> libswresample   3.  4.100 /  3.  4.100
>>
>> The program didn't stop at the breakpoint :-(
>> Shortly in the status bar I saw "Program completed, exit value 0", but as
>> you can see above there is missing somthing like:
>> DEBUG FINISHED; exit value 0; real time: 990ms; user: 0ms; system: 0ms
>>
>> So bad, that it doesn't work at me. Hopefully we finde the cause. I'll
>> try to install NB 11.1 for that.
>>
>> -Ulf
>> Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>>
>> https://youtu.be/xPvasdbFJAw
>>
>> There it is. Tell me what to do differently as specifically as possible,
>> if needed, and I'll do it to reproduce your requirements.
>>
>> Gj
>>
>> On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Sorry, I think I don't understand your question.
>>>
>>> If you were able to run the bebugger with "./ffmpeg --version" then with
>>> "./ffmpeg_g -i sample.jpg result.jpg" it should be the same ... if you have
>>> prepared a "sample.jpg" in start dir.
>>>
>>> -Ulf
>>> Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>>
>>> But how to run the debugger on that?
>>>
>>> Gj
>>>
>>> On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>>
>>>> The simplest command line for real world is:
>>>> ./ffmpeg_g -i sample.jpg result.jpg
>>>>
>>>> -Ulf
>>>> Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>>
>>>> The main() function is in fftools/ffmpeg.c
>>>> I think you can set a breakpoint there for a first test. Maybe set it
>>>> at line 4869 where show_banner(argc, argv, options); is called, so you can
>>>> test what happens when jumping in.
>>>> For first try just run ./ffmpeg_g (stands for gdb and includes symbols)
>>>> without arguments or try ./ffmpeg_g --version.
>>>>
>>>> Curious if that works.
>>>>
>>>> -Ulf
>>>>
>>>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Hi,

here is the log from fresh userdir with on run of debugger. I don't see
any error, but warnings.

-Ulf

Am 05.07.19 um 06:57 schrieb Geertjan Wielenga:
> Well, the solution is like always — start again with a fresh userdir
> and recreate the problem, then you'll have log files that we can look
> at to see the errors generated when the problem occurs. Also consider
> using a different version of gdb to see if that makes a difference or
> switch from gdb to clang debugger. In addition look on-line for issues
> about C/C++ debugger breakpoints not being hit in NetBeans, I’ve seen
> a few issues about that, which appears to be the problem here.
>
> Gj
>
>
> On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     Hi,
>
>     now I installed NB 11.1 beta-3 from here:
>     https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>
>     With this I have the same bad results when running the debugger. :-(
>
>     Aside: I said the installer to install into
>     /opt/netbeans/11.1/
>     but it installed into
>     /opt/netbeans/11.1/netbeans/
>     Additionally it had deleted "/usr/share/applications/netbeans
>     10.0.desktop"
>     and created "/usr/share/applications/NetBeans-11.1.desktop"
>     I think, this is not correct.
>
>     -Ulf
>
>     Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>>
>>     Hi Geertjan,
>>
>>     please note, that I use NetBeans 10 (not 11.1) and I have
>>     installed it into "/opt/netbeans/10.0/" as root. Then I started
>>     it as root and added the C/C++ plugin besides few others with
>>     "Force install into shared directories". Hope that doesn't hurt.
>>
>>     The starter is in "/usr/share/applications/netbeans 10.0.desktop"
>>     with:
>>     [Desktop Entry]
>>     Name=NetBeans IDE 10.0
>>     Comment=Apache NetBeans IDE 10.0
>>     Exec=/opt/netbeans/10.0/bin/netbeans %f
>>     Path=/opt/netbeans/10.0
>>     Terminal=false
>>     Icon=/opt/netbeans/10.0/nb/netbeans.icns
>>     Type=Application
>>     Categories=Java;Development;IDE;
>>     MimeType=application/x-jar;application/x-java;
>>
>>     Then I copied the project files into "~/Projects/ffmpeg/test".
>>     Then I started NB as normal user and created a new "C/++ Project
>>     with existing sources" in "~/Projects/ffmpeg/test".
>>     It automatically started to build and failed with:
>>     cd '/home/ich/Projects/ffmpeg/test'
>>     /bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++ CFLAGS="-g3
>>     -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
>>     Unknown option "CC=/usr/bin/gcc".
>>     See ./configure --help for available options.
>>
>>     RUN FAILED (exit value 1, total time: 293ms)
>>
>>     So I had to configure:
>>     Pre-Build -> Command Line: ./configure
>>     Make -> Build Command: make
>>     Make -> Clean Command: make clean
>>     Run -> Command Line: ./ffmpeg -version
>>     Debug -> Debug command: ./ffmpeg_g -version
>>
>>     Then: test -> More Build Commands -> Pre-Build:
>>     cd '/home/ich/Projects/ffmpeg/test'
>>     ./configure
>>     install prefix            /usr/local
>>     source path               .
>>     C compiler                gcc
>>     C library                 glibc
>>     ARCH                      x86 (generic)
>>     big-endian                no
>>     runtime cpu detection     yes
>>     standalone assembly       yes
>>     x86 assembler             nasm
>>     [.....]
>>     PRE-BUILD SUCCESSFUL (total time: 21s)
>>
>>     Then: test -> Build:
>>     cd '/home/ich/Projects/ffmpeg/test'
>>     make
>>     GEN    libavutil/libavutil.version
>>     GEN    libswscale/libswscale.version
>>     GEN    libswresample/libswresample.version
>>     GEN    libavcodec/libavcodec.version
>>     GEN    libavformat/libavformat.version
>>     GEN    libavfilter/libavfilter.version
>>     GEN    libavdevice/libavdevice.version
>>     CC    libavdevice/alldevices.o
>>     [.....]
>>     LD    ffprobe_g
>>     STRIP    ffprobe
>>
>>     BUILD SUCCESSFUL (total time: 24m 28s)
>>
>>     Then: test -> Run:
>>     ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the
>>     FFmpeg developers
>>     built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>     configuration:
>>     libavutil      56. 26.100 / 56. 26.100
>>     libavcodec     58. 48.100 / 58. 48.100
>>     libavformat    58. 26.101 / 58. 26.101
>>     libavdevice    58.  7.100 / 58.  7.100
>>     libavfilter     7. 48.100 /  7. 48.100
>>     libswscale      5.  4.100 /  5.  4.100
>>     libswresample   3.  4.100 /  3.  4.100
>>
>>     RUN FINISHED; exit value 0; real time: 190ms; user: 0ms; system: 0ms
>>
>>     Then in "fftools/ffmpeg.c" in line 4848
>>     "register_exit(ffmpeg_cleanup);" I set a breakpoint.
>>
>>     Then: test -> Debug:
>>     ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the
>>     FFmpeg developers
>>     built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
>>     configuration:
>>     libavutil      56. 26.100 / 56. 26.100
>>     libavcodec     58. 48.100 / 58. 48.100
>>     libavformat    58. 26.101 / 58. 26.101
>>     libavdevice    58.  7.100 / 58.  7.100
>>     libavfilter     7. 48.100 /  7. 48.100
>>     libswscale      5.  4.100 /  5.  4.100
>>     libswresample   3.  4.100 /  3.  4.100
>>
>>     The program didn't stop at the breakpoint :-(
>>     Shortly in the status bar I saw "Program completed, exit value
>>     0", but as you can see above there is missing somthing like:
>>     DEBUG FINISHED; exit value 0; real time: 990ms; user: 0ms;
>>     system: 0ms
>>
>>     So bad, that it doesn't work at me. Hopefully we finde the cause.
>>     I'll try to install NB 11.1 for that.
>>
>>     -Ulf
>>
>>     Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>>>     https://youtu.be/xPvasdbFJAw
>>>
>>>     There it is. Tell me what to do differently as specifically as
>>>     possible, if needed, and I'll do it to reproduce your requirements.
>>>
>>>     Gj
>>>
>>>     On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ulf.Zibis@cosoco.de
>>>     <ma...@cosoco.de>> wrote:
>>>
>>>         Sorry, I think I don't understand your question.
>>>
>>>         If you were able to run the bebugger with "./ffmpeg
>>>         --version" then with "./ffmpeg_g -i sample.jpg result.jpg"
>>>         it should be the same ... if you have prepared a
>>>         "sample.jpg" in start dir.
>>>
>>>         -Ulf
>>>
>>>         Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>>>         But how to run the debugger on that?
>>>>
>>>>         Gj
>>>>
>>>>         On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis
>>>>         <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>>>
>>>>             The simplest command line for real world is:
>>>>             ./ffmpeg_g -i sample.jpg result.jpg
>>>>
>>>>             -Ulf
>>>>
>>>>             Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>>>
>>>>>             The main() function is in fftools/ffmpeg.c
>>>>>             I think you can set a breakpoint there for a first
>>>>>             test. Maybe set it at line 4869 where
>>>>>             show_banner(argc, argv, options); is called, so you
>>>>>             can test what happens when jumping in.
>>>>>             For first try just run ./ffmpeg_g (stands for gdb and
>>>>>             includes symbols) without arguments or try ./ffmpeg_g
>>>>>             --version.
>>>>>
>>>>>             Curious if that works.
>>>>>
>>>>>             -Ulf
>>>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
Well, the solution is like always — start again with a fresh userdir and
recreate the problem, then you'll have log files that we can look at to see
the errors generated when the problem occurs. Also consider using a
different version of gdb to see if that makes a difference or switch from
gdb to clang debugger. In addition look on-line for issues about C/C++
debugger breakpoints not being hit in NetBeans, I’ve seen a few issues
about that, which appears to be the problem here.

Gj


On Fri, 5 Jul 2019 at 01:27, Ulf Zibis <Ul...@cosoco.de> wrote:

> Hi,
>
> now I installed NB 11.1 beta-3 from here:
>
> https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh
>
> With this I have the same bad results when running the debugger. :-(
>
> Aside: I said the installer to install into
> /opt/netbeans/11.1/
> but it installed into
> /opt/netbeans/11.1/netbeans/
> Additionally it had deleted "/usr/share/applications/netbeans 10.0.desktop"
> and created "/usr/share/applications/NetBeans-11.1.desktop"
> I think, this is not correct.
>
> -Ulf
> Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>
> Hi Geertjan,
>
> please note, that I use NetBeans 10 (not 11.1) and I have installed it
> into "/opt/netbeans/10.0/" as root. Then I started it as root and added the
> C/C++ plugin besides few others with "Force install into shared
> directories". Hope that doesn't hurt.
>
> The starter is in "/usr/share/applications/netbeans 10.0.desktop" with:
> [Desktop Entry]
> Name=NetBeans IDE 10.0
> Comment=Apache NetBeans IDE 10.0
> Exec=/opt/netbeans/10.0/bin/netbeans %f
> Path=/opt/netbeans/10.0
> Terminal=false
> Icon=/opt/netbeans/10.0/nb/netbeans.icns
> Type=Application
> Categories=Java;Development;IDE;
> MimeType=application/x-jar;application/x-java;
>
> Then I copied the project files into "~/Projects/ffmpeg/test".
> Then I started NB as normal user and created a new "C/++ Project with
> existing sources" in "~/Projects/ffmpeg/test".
> It automatically started to build and failed with:
> cd '/home/ich/Projects/ffmpeg/test'
> /bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++ CFLAGS="-g3
> -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
> Unknown option "CC=/usr/bin/gcc".
> See ./configure --help for available options.
>
> RUN FAILED (exit value 1, total time: 293ms)
>
> So I had to configure:
> Pre-Build -> Command Line: ./configure
> Make -> Build Command: make
> Make -> Clean Command: make clean
> Run -> Command Line: ./ffmpeg -version
> Debug -> Debug command: ./ffmpeg_g -version
>
> Then: test -> More Build Commands -> Pre-Build:
> cd '/home/ich/Projects/ffmpeg/test'
> ./configure
> install prefix            /usr/local
> source path               .
> C compiler                gcc
> C library                 glibc
> ARCH                      x86 (generic)
> big-endian                no
> runtime cpu detection     yes
> standalone assembly       yes
> x86 assembler             nasm
> [.....]
> PRE-BUILD SUCCESSFUL (total time: 21s)
>
> Then: test -> Build:
> cd '/home/ich/Projects/ffmpeg/test'
> make
> GEN    libavutil/libavutil.version
> GEN    libswscale/libswscale.version
> GEN    libswresample/libswresample.version
> GEN    libavcodec/libavcodec.version
> GEN    libavformat/libavformat.version
> GEN    libavfilter/libavfilter.version
> GEN    libavdevice/libavdevice.version
> CC    libavdevice/alldevices.o
> [.....]
> LD    ffprobe_g
> STRIP    ffprobe
>
> BUILD SUCCESSFUL (total time: 24m 28s)
>
> Then: test -> Run:
> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
> developers
> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
> configuration:
> libavutil      56. 26.100 / 56. 26.100
> libavcodec     58. 48.100 / 58. 48.100
> libavformat    58. 26.101 / 58. 26.101
> libavdevice    58.  7.100 / 58.  7.100
> libavfilter     7. 48.100 /  7. 48.100
> libswscale      5.  4.100 /  5.  4.100
> libswresample   3.  4.100 /  3.  4.100
>
> RUN FINISHED; exit value 0; real time: 190ms; user: 0ms; system: 0ms
>
> Then in "fftools/ffmpeg.c" in line 4848 "register_exit(ffmpeg_cleanup);" I
> set a breakpoint.
>
> Then: test -> Debug:
> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
> developers
> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
> configuration:
> libavutil      56. 26.100 / 56. 26.100
> libavcodec     58. 48.100 / 58. 48.100
> libavformat    58. 26.101 / 58. 26.101
> libavdevice    58.  7.100 / 58.  7.100
> libavfilter     7. 48.100 /  7. 48.100
> libswscale      5.  4.100 /  5.  4.100
> libswresample   3.  4.100 /  3.  4.100
>
> The program didn't stop at the breakpoint :-(
> Shortly in the status bar I saw "Program completed, exit value 0", but as
> you can see above there is missing somthing like:
> DEBUG FINISHED; exit value 0; real time: 990ms; user: 0ms; system: 0ms
>
> So bad, that it doesn't work at me. Hopefully we finde the cause. I'll try
> to install NB 11.1 for that.
>
> -Ulf
> Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>
> https://youtu.be/xPvasdbFJAw
>
> There it is. Tell me what to do differently as specifically as possible,
> if needed, and I'll do it to reproduce your requirements.
>
> Gj
>
> On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Sorry, I think I don't understand your question.
>>
>> If you were able to run the bebugger with "./ffmpeg --version" then with
>> "./ffmpeg_g -i sample.jpg result.jpg" it should be the same ... if you have
>> prepared a "sample.jpg" in start dir.
>>
>> -Ulf
>> Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>
>> But how to run the debugger on that?
>>
>> Gj
>>
>> On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> The simplest command line for real world is:
>>> ./ffmpeg_g -i sample.jpg result.jpg
>>>
>>> -Ulf
>>> Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>
>>> The main() function is in fftools/ffmpeg.c
>>> I think you can set a breakpoint there for a first test. Maybe set it at
>>> line 4869 where show_banner(argc, argv, options); is called, so you can
>>> test what happens when jumping in.
>>> For first try just run ./ffmpeg_g (stands for gdb and includes symbols)
>>> without arguments or try ./ffmpeg_g --version.
>>>
>>> Curious if that works.
>>>
>>> -Ulf
>>>
>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Hi,

now I installed NB 11.1 beta-3 from here:
https://github.com/rtaneja1/netbeans/blob/installer-bin-11-1/nbbuild/installer/binaries/Apache-NetBeans-11.1-bin-linux-x64.sh

With this I have the same bad results when running the debugger. :-(

Aside: I said the installer to install into
/opt/netbeans/11.1/
but it installed into
/opt/netbeans/11.1/netbeans/
Additionally it had deleted "/usr/share/applications/netbeans 10.0.desktop"
and created "/usr/share/applications/NetBeans-11.1.desktop"
I think, this is not correct.

-Ulf

Am 04.07.19 um 23:42 schrieb Ulf Zibis:
>
> Hi Geertjan,
>
> please note, that I use NetBeans 10 (not 11.1) and I have installed it
> into "/opt/netbeans/10.0/" as root. Then I started it as root and
> added the C/C++ plugin besides few others with "Force install into
> shared directories". Hope that doesn't hurt.
>
> The starter is in "/usr/share/applications/netbeans 10.0.desktop" with:
> [Desktop Entry]
> Name=NetBeans IDE 10.0
> Comment=Apache NetBeans IDE 10.0
> Exec=/opt/netbeans/10.0/bin/netbeans %f
> Path=/opt/netbeans/10.0
> Terminal=false
> Icon=/opt/netbeans/10.0/nb/netbeans.icns
> Type=Application
> Categories=Java;Development;IDE;
> MimeType=application/x-jar;application/x-java;
>
> Then I copied the project files into "~/Projects/ffmpeg/test".
> Then I started NB as normal user and created a new "C/++ Project with
> existing sources" in "~/Projects/ffmpeg/test".
> It automatically started to build and failed with:
> cd '/home/ich/Projects/ffmpeg/test'
> /bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++ CFLAGS="-g3
> -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
> Unknown option "CC=/usr/bin/gcc".
> See ./configure --help for available options.
>
> RUN FAILED (exit value 1, total time: 293ms)
>
> So I had to configure:
> Pre-Build -> Command Line: ./configure
> Make -> Build Command: make
> Make -> Clean Command: make clean
> Run -> Command Line: ./ffmpeg -version
> Debug -> Debug command: ./ffmpeg_g -version
>
> Then: test -> More Build Commands -> Pre-Build:
> cd '/home/ich/Projects/ffmpeg/test'
> ./configure
> install prefix            /usr/local
> source path               .
> C compiler                gcc
> C library                 glibc
> ARCH                      x86 (generic)
> big-endian                no
> runtime cpu detection     yes
> standalone assembly       yes
> x86 assembler             nasm
> [.....]
> PRE-BUILD SUCCESSFUL (total time: 21s)
>
> Then: test -> Build:
> cd '/home/ich/Projects/ffmpeg/test'
> make
> GEN    libavutil/libavutil.version
> GEN    libswscale/libswscale.version
> GEN    libswresample/libswresample.version
> GEN    libavcodec/libavcodec.version
> GEN    libavformat/libavformat.version
> GEN    libavfilter/libavfilter.version
> GEN    libavdevice/libavdevice.version
> CC    libavdevice/alldevices.o
> [.....]
> LD    ffprobe_g
> STRIP    ffprobe
>
> BUILD SUCCESSFUL (total time: 24m 28s)
>
> Then: test -> Run:
> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
> developers
> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
> configuration:
> libavutil      56. 26.100 / 56. 26.100
> libavcodec     58. 48.100 / 58. 48.100
> libavformat    58. 26.101 / 58. 26.101
> libavdevice    58.  7.100 / 58.  7.100
> libavfilter     7. 48.100 /  7. 48.100
> libswscale      5.  4.100 /  5.  4.100
> libswresample   3.  4.100 /  3.  4.100
>
> RUN FINISHED; exit value 0; real time: 190ms; user: 0ms; system: 0ms
>
> Then in "fftools/ffmpeg.c" in line 4848
> "register_exit(ffmpeg_cleanup);" I set a breakpoint.
>
> Then: test -> Debug:
> ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
> developers
> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
> configuration:
> libavutil      56. 26.100 / 56. 26.100
> libavcodec     58. 48.100 / 58. 48.100
> libavformat    58. 26.101 / 58. 26.101
> libavdevice    58.  7.100 / 58.  7.100
> libavfilter     7. 48.100 /  7. 48.100
> libswscale      5.  4.100 /  5.  4.100
> libswresample   3.  4.100 /  3.  4.100
>
> The program didn't stop at the breakpoint :-(
> Shortly in the status bar I saw "Program completed, exit value 0", but
> as you can see above there is missing somthing like:
> DEBUG FINISHED; exit value 0; real time: 990ms; user: 0ms; system: 0ms
>
> So bad, that it doesn't work at me. Hopefully we finde the cause. I'll
> try to install NB 11.1 for that.
>
> -Ulf
>
> Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
>> https://youtu.be/xPvasdbFJAw
>>
>> There it is. Tell me what to do differently as specifically as
>> possible, if needed, and I'll do it to reproduce your requirements.
>>
>> Gj
>>
>> On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ulf.Zibis@cosoco.de
>> <ma...@cosoco.de>> wrote:
>>
>>     Sorry, I think I don't understand your question.
>>
>>     If you were able to run the bebugger with "./ffmpeg --version"
>>     then with "./ffmpeg_g -i sample.jpg result.jpg" it should be the
>>     same ... if you have prepared a "sample.jpg" in start dir.
>>
>>     -Ulf
>>
>>     Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>>     But how to run the debugger on that?
>>>
>>>     Gj
>>>
>>>     On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ulf.Zibis@cosoco.de
>>>     <ma...@cosoco.de>> wrote:
>>>
>>>         The simplest command line for real world is:
>>>         ./ffmpeg_g -i sample.jpg result.jpg
>>>
>>>         -Ulf
>>>
>>>         Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>>
>>>>         The main() function is in fftools/ffmpeg.c
>>>>         I think you can set a breakpoint there for a first test.
>>>>         Maybe set it at line 4869 where show_banner(argc, argv,
>>>>         options); is called, so you can test what happens when
>>>>         jumping in.
>>>>         For first try just run ./ffmpeg_g (stands for gdb and
>>>>         includes symbols) without arguments or try ./ffmpeg_g
>>>>         --version.
>>>>
>>>>         Curious if that works.
>>>>
>>>>         -Ulf
>>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Hi Geertjan,

please note, that I use NetBeans 10 (not 11.1) and I have installed it
into "/opt/netbeans/10.0/" as root. Then I started it as root and added
the C/C++ plugin besides few others with "Force install into shared
directories". Hope that doesn't hurt.

The starter is in "/usr/share/applications/netbeans 10.0.desktop" with:
[Desktop Entry]
Name=NetBeans IDE 10.0
Comment=Apache NetBeans IDE 10.0
Exec=/opt/netbeans/10.0/bin/netbeans %f
Path=/opt/netbeans/10.0
Terminal=false
Icon=/opt/netbeans/10.0/nb/netbeans.icns
Type=Application
Categories=Java;Development;IDE;
MimeType=application/x-jar;application/x-java;

Then I copied the project files into "~/Projects/ffmpeg/test".
Then I started NB as normal user and created a new "C/++ Project with
existing sources" in "~/Projects/ffmpeg/test".
It automatically started to build and failed with:
cd '/home/ich/Projects/ffmpeg/test'
/bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++ CFLAGS="-g3
-gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
Unknown option "CC=/usr/bin/gcc".
See ./configure --help for available options.

RUN FAILED (exit value 1, total time: 293ms)

So I had to configure:
Pre-Build -> Command Line: ./configure
Make -> Build Command: make
Make -> Clean Command: make clean
Run -> Command Line: ./ffmpeg -version
Debug -> Debug command: ./ffmpeg_g -version

Then: test -> More Build Commands -> Pre-Build:
cd '/home/ich/Projects/ffmpeg/test'
./configure
install prefix            /usr/local
source path               .
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
standalone assembly       yes
x86 assembler             nasm
[.....]
PRE-BUILD SUCCESSFUL (total time: 21s)

Then: test -> Build:
cd '/home/ich/Projects/ffmpeg/test'
make
GEN    libavutil/libavutil.version
GEN    libswscale/libswscale.version
GEN    libswresample/libswresample.version
GEN    libavcodec/libavcodec.version
GEN    libavformat/libavformat.version
GEN    libavfilter/libavfilter.version
GEN    libavdevice/libavdevice.version
CC    libavdevice/alldevices.o
[.....]
LD    ffprobe_g
STRIP    ffprobe

BUILD SUCCESSFUL (total time: 24m 28s)

Then: test -> Run:
ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration:
libavutil      56. 26.100 / 56. 26.100
libavcodec     58. 48.100 / 58. 48.100
libavformat    58. 26.101 / 58. 26.101
libavdevice    58.  7.100 / 58.  7.100
libavfilter     7. 48.100 /  7. 48.100
libswscale      5.  4.100 /  5.  4.100
libswresample   3.  4.100 /  3.  4.100

RUN FINISHED; exit value 0; real time: 190ms; user: 0ms; system: 0ms

Then in "fftools/ffmpeg.c" in line 4848 "register_exit(ffmpeg_cleanup);"
I set a breakpoint.

Then: test -> Debug:
ffmpeg version N-93535-gca448f0b47 Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration:
libavutil      56. 26.100 / 56. 26.100
libavcodec     58. 48.100 / 58. 48.100
libavformat    58. 26.101 / 58. 26.101
libavdevice    58.  7.100 / 58.  7.100
libavfilter     7. 48.100 /  7. 48.100
libswscale      5.  4.100 /  5.  4.100
libswresample   3.  4.100 /  3.  4.100

The program didn't stop at the breakpoint :-(
Shortly in the status bar I saw "Program completed, exit value 0", but
as you can see above there is missing somthing like:
DEBUG FINISHED; exit value 0; real time: 990ms; user: 0ms; system: 0ms

So bad, that it doesn't work at me. Hopefully we finde the cause. I'll
try to install NB 11.1 for that.

-Ulf

Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
> https://youtu.be/xPvasdbFJAw
>
> There it is. Tell me what to do differently as specifically as
> possible, if needed, and I'll do it to reproduce your requirements.
>
> Gj
>
> On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     Sorry, I think I don't understand your question.
>
>     If you were able to run the bebugger with "./ffmpeg --version"
>     then with "./ffmpeg_g -i sample.jpg result.jpg" it should be the
>     same ... if you have prepared a "sample.jpg" in start dir.
>
>     -Ulf
>
>     Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>     But how to run the debugger on that?
>>
>>     Gj
>>
>>     On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ulf.Zibis@cosoco.de
>>     <ma...@cosoco.de>> wrote:
>>
>>         The simplest command line for real world is:
>>         ./ffmpeg_g -i sample.jpg result.jpg
>>
>>         -Ulf
>>
>>         Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>
>>>         The main() function is in fftools/ffmpeg.c
>>>         I think you can set a breakpoint there for a first test.
>>>         Maybe set it at line 4869 where show_banner(argc, argv,
>>>         options); is called, so you can test what happens when
>>>         jumping in.
>>>         For first try just run ./ffmpeg_g (stands for gdb and
>>>         includes symbols) without arguments or try ./ffmpeg_g --version.
>>>
>>>         Curious if that works.
>>>
>>>         -Ulf
>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Much thanks Geertjan, have a good afterwork. I'll try it and response
tomorrow.

-Ulf

Am 04.07.19 um 20:30 schrieb Geertjan Wielenga:
> https://youtu.be/xPvasdbFJAw
>
> There it is. Tell me what to do differently as specifically as
> possible, if needed, and I'll do it to reproduce your requirements.
>
> Gj
>
> On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     Sorry, I think I don't understand your question.
>
>     If you were able to run the bebugger with "./ffmpeg --version"
>     then with "./ffmpeg_g -i sample.jpg result.jpg" it should be the
>     same ... if you have prepared a "sample.jpg" in start dir.
>
>     -Ulf
>
>     Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>>     But how to run the debugger on that?
>>
>>     Gj
>>
>>     On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ulf.Zibis@cosoco.de
>>     <ma...@cosoco.de>> wrote:
>>
>>         The simplest command line for real world is:
>>         ./ffmpeg_g -i sample.jpg result.jpg
>>
>>         -Ulf
>>
>>         Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>>
>>>         The main() function is in fftools/ffmpeg.c
>>>         I think you can set a breakpoint there for a first test.
>>>         Maybe set it at line 4869 where show_banner(argc, argv,
>>>         options); is called, so you can test what happens when
>>>         jumping in.
>>>         For first try just run ./ffmpeg_g (stands for gdb and
>>>         includes symbols) without arguments or try ./ffmpeg_g --version.
>>>
>>>         Curious if that works.
>>>
>>>         -Ulf
>>>
>>>         Am 04.07.19 um 18:35 schrieb Geertjan Wielenga:
>>>>         OK, I ran ./configure and then built in NetBeans, so now I
>>>>         have binaries and I can run them etc. Where do I need to
>>>>         place a breakpoint when trying to set up the Debugger?
>>>>
>>>>         Gj
>>>>
>>>>         On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga
>>>>         <geertjan@apache.org <ma...@apache.org>> wrote:
>>>>
>>>>             Maybe you can provide instructions on the site about
>>>>             how to set up the sources so they can be run in
>>>>             NetBeans (and then once I have that working, I'll work
>>>>             on how to debug from there, using GNU debugger on Mac,
>>>>             which I have working now for standard C/C++ projects,
>>>>             but can't start applying to your project until I have
>>>>             set it up correctly in the way that you have it).
>>>>
>>>>             Gj
>>>>
>>>>             On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis
>>>>             <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>>>
>>>>                 Hey Geertjan,
>>>>
>>>>                 this is a great offer, thanks.
>>>>                 Here the Git clone command: git clone
>>>>                 https://git.ffmpeg.org/ffmpeg.git ffmpeg
>>>>
>>>>                 The documentations for developers:
>>>>                 https://ffmpeg.org/developer.html
>>>>
>>>>                 Did you get my current settings in the attachment
>>>>                 from my other thread 2 days ago?
>>>>
>>>>                 -Ulf
>>>>
>>>>                 Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>>>>                 I’ll look into it if you provide the starting
>>>>>                 point of an application on GitHub, i.e., the
>>>>>                 sources that are to be imported as a C/C++
>>>>>                 project. Then I’ll have a scenario to use as a
>>>>>                 starting point to figure this out.
>>>>>
>>>>>                 Gj
>>>>>
>>>>>                 On Thu, 4 Jul 2019 at 12:28, Ulf Zibis
>>>>>                 <Ulf.Zibis@cosoco.de <ma...@cosoco.de>>
>>>>>                 wrote:
>>>>>
>>>>>                     Hi,
>>>>>
>>>>>                     I'm wondering if there would be a tutorial on
>>>>>                     how to configure a C/C++
>>>>>                     "Project from existing sources" to enable the
>>>>>                     debugger facility of
>>>>>                     NetBeans IDE.
>>>>>
>>>>>                     With a project created from the inbuild
>>>>>                     NetBeans templates it works
>>>>>                     fine, but not with a "Project from existing
>>>>>                     sources".
>>>>>
>>>>>                     Can one give me some hints please?
>>>>>
>>>>>                     -Ulf
>>>>>
>>>>>
>>>>>                     ---------------------------------------------------------------------
>>>>>                     To unsubscribe, e-mail:
>>>>>                     users-unsubscribe@netbeans.apache.org
>>>>>                     <ma...@netbeans.apache.org>
>>>>>                     For additional commands, e-mail:
>>>>>                     users-help@netbeans.apache.org
>>>>>                     <ma...@netbeans.apache.org>
>>>>>
>>>>>                     For further information about the NetBeans
>>>>>                     mailing lists, visit:
>>>>>                     https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
https://youtu.be/xPvasdbFJAw

There it is. Tell me what to do differently as specifically as possible, if
needed, and I'll do it to reproduce your requirements.

Gj

On Thu, Jul 4, 2019 at 8:08 PM Ulf Zibis <Ul...@cosoco.de> wrote:

> Sorry, I think I don't understand your question.
>
> If you were able to run the bebugger with "./ffmpeg --version" then with
> "./ffmpeg_g -i sample.jpg result.jpg" it should be the same ... if you have
> prepared a "sample.jpg" in start dir.
>
> -Ulf
> Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
>
> But how to run the debugger on that?
>
> Gj
>
> On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> The simplest command line for real world is:
>> ./ffmpeg_g -i sample.jpg result.jpg
>>
>> -Ulf
>> Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>
>> The main() function is in fftools/ffmpeg.c
>> I think you can set a breakpoint there for a first test. Maybe set it at
>> line 4869 where show_banner(argc, argv, options); is called, so you can
>> test what happens when jumping in.
>> For first try just run ./ffmpeg_g (stands for gdb and includes symbols)
>> without arguments or try ./ffmpeg_g --version.
>>
>> Curious if that works.
>>
>> -Ulf
>> Am 04.07.19 um 18:35 schrieb Geertjan Wielenga:
>>
>> OK, I ran ./configure and then built in NetBeans, so now I have binaries
>> and I can run them etc. Where do I need to place a breakpoint when trying
>> to set up the Debugger?
>>
>> Gj
>>
>> On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga <ge...@apache.org>
>> wrote:
>>
>>> Maybe you can provide instructions on the site about how to set up the
>>> sources so they can be run in NetBeans (and then once I have that working,
>>> I'll work on how to debug from there, using GNU debugger on Mac, which I
>>> have working now for standard C/C++ projects, but can't start applying to
>>> your project until I have set it up correctly in the way that you have it).
>>>
>>> Gj
>>>
>>> On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>>
>>>> Hey Geertjan,
>>>>
>>>> this is a great offer, thanks.
>>>> Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
>>>> ffmpeg
>>>>
>>>> The documentations for developers: https://ffmpeg.org/developer.html
>>>>
>>>> Did you get my current settings in the attachment from my other thread
>>>> 2 days ago?
>>>>
>>>> -Ulf
>>>> Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>>>
>>>> I’ll look into it if you provide the starting point of an application
>>>> on GitHub, i.e., the sources that are to be imported as a C/C++ project.
>>>> Then I’ll have a scenario to use as a starting point to figure this out.
>>>>
>>>> Gj
>>>>
>>>> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm wondering if there would be a tutorial on how to configure a C/C++
>>>>> "Project from existing sources" to enable the debugger facility of
>>>>> NetBeans IDE.
>>>>>
>>>>> With a project created from the inbuild NetBeans templates it works
>>>>> fine, but not with a "Project from existing sources".
>>>>>
>>>>> Can one give me some hints please?
>>>>>
>>>>> -Ulf
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>
>>>>> For further information about the NetBeans mailing lists, visit:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>
>>>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Sorry, I think I don't understand your question.

If you were able to run the bebugger with "./ffmpeg --version" then with
"./ffmpeg_g -i sample.jpg result.jpg" it should be the same ... if you
have prepared a "sample.jpg" in start dir.

-Ulf

Am 04.07.19 um 19:59 schrieb Geertjan Wielenga:
> But how to run the debugger on that?
>
> Gj
>
> On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     The simplest command line for real world is:
>     ./ffmpeg_g -i sample.jpg result.jpg
>
>     -Ulf
>
>     Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>>
>>     The main() function is in fftools/ffmpeg.c
>>     I think you can set a breakpoint there for a first test. Maybe
>>     set it at line 4869 where show_banner(argc, argv, options); is
>>     called, so you can test what happens when jumping in.
>>     For first try just run ./ffmpeg_g (stands for gdb and includes
>>     symbols) without arguments or try ./ffmpeg_g --version.
>>
>>     Curious if that works.
>>
>>     -Ulf
>>
>>     Am 04.07.19 um 18:35 schrieb Geertjan Wielenga:
>>>     OK, I ran ./configure and then built in NetBeans, so now I have
>>>     binaries and I can run them etc. Where do I need to place a
>>>     breakpoint when trying to set up the Debugger?
>>>
>>>     Gj
>>>
>>>     On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga
>>>     <geertjan@apache.org <ma...@apache.org>> wrote:
>>>
>>>         Maybe you can provide instructions on the site about how to
>>>         set up the sources so they can be run in NetBeans (and then
>>>         once I have that working, I'll work on how to debug from
>>>         there, using GNU debugger on Mac, which I have working now
>>>         for standard C/C++ projects, but can't start applying to
>>>         your project until I have set it up correctly in the way
>>>         that you have it).
>>>
>>>         Gj
>>>
>>>         On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis
>>>         <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>>
>>>             Hey Geertjan,
>>>
>>>             this is a great offer, thanks.
>>>             Here the Git clone command: git clone
>>>             https://git.ffmpeg.org/ffmpeg.git ffmpeg
>>>
>>>             The documentations for developers:
>>>             https://ffmpeg.org/developer.html
>>>
>>>             Did you get my current settings in the attachment from
>>>             my other thread 2 days ago?
>>>
>>>             -Ulf
>>>
>>>             Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>>>             I’ll look into it if you provide the starting point of
>>>>             an application on GitHub, i.e., the sources that are to
>>>>             be imported as a C/C++ project. Then I’ll have a
>>>>             scenario to use as a starting point to figure this out.
>>>>
>>>>             Gj
>>>>
>>>>             On Thu, 4 Jul 2019 at 12:28, Ulf Zibis
>>>>             <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>>>
>>>>                 Hi,
>>>>
>>>>                 I'm wondering if there would be a tutorial on how
>>>>                 to configure a C/C++
>>>>                 "Project from existing sources" to enable the
>>>>                 debugger facility of
>>>>                 NetBeans IDE.
>>>>
>>>>                 With a project created from the inbuild NetBeans
>>>>                 templates it works
>>>>                 fine, but not with a "Project from existing sources".
>>>>
>>>>                 Can one give me some hints please?
>>>>
>>>>                 -Ulf
>>>>
>>>>
>>>>                 ---------------------------------------------------------------------
>>>>                 To unsubscribe, e-mail:
>>>>                 users-unsubscribe@netbeans.apache.org
>>>>                 <ma...@netbeans.apache.org>
>>>>                 For additional commands, e-mail:
>>>>                 users-help@netbeans.apache.org
>>>>                 <ma...@netbeans.apache.org>
>>>>
>>>>                 For further information about the NetBeans mailing
>>>>                 lists, visit:
>>>>                 https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
But how to run the debugger on that?

Gj

On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis <Ul...@cosoco.de> wrote:

> The simplest command line for real world is:
> ./ffmpeg_g -i sample.jpg result.jpg
>
> -Ulf
> Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>
> The main() function is in fftools/ffmpeg.c
> I think you can set a breakpoint there for a first test. Maybe set it at
> line 4869 where show_banner(argc, argv, options); is called, so you can
> test what happens when jumping in.
> For first try just run ./ffmpeg_g (stands for gdb and includes symbols)
> without arguments or try ./ffmpeg_g --version.
>
> Curious if that works.
>
> -Ulf
> Am 04.07.19 um 18:35 schrieb Geertjan Wielenga:
>
> OK, I ran ./configure and then built in NetBeans, so now I have binaries
> and I can run them etc. Where do I need to place a breakpoint when trying
> to set up the Debugger?
>
> Gj
>
> On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
>> Maybe you can provide instructions on the site about how to set up the
>> sources so they can be run in NetBeans (and then once I have that working,
>> I'll work on how to debug from there, using GNU debugger on Mac, which I
>> have working now for standard C/C++ projects, but can't start applying to
>> your project until I have set it up correctly in the way that you have it).
>>
>> Gj
>>
>> On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Hey Geertjan,
>>>
>>> this is a great offer, thanks.
>>> Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
>>> ffmpeg
>>>
>>> The documentations for developers: https://ffmpeg.org/developer.html
>>>
>>> Did you get my current settings in the attachment from my other thread 2
>>> days ago?
>>>
>>> -Ulf
>>> Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>>
>>> I’ll look into it if you provide the starting point of an application on
>>> GitHub, i.e., the sources that are to be imported as a C/C++ project. Then
>>> I’ll have a scenario to use as a starting point to figure this out.
>>>
>>> Gj
>>>
>>> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm wondering if there would be a tutorial on how to configure a C/C++
>>>> "Project from existing sources" to enable the debugger facility of
>>>> NetBeans IDE.
>>>>
>>>> With a project created from the inbuild NetBeans templates it works
>>>> fine, but not with a "Project from existing sources".
>>>>
>>>> Can one give me some hints please?
>>>>
>>>> -Ulf
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
The simplest command line for real world is:
./ffmpeg_g -i sample.jpg result.jpg

-Ulf

Am 04.07.19 um 19:29 schrieb Ulf Zibis:
>
> The main() function is in fftools/ffmpeg.c
> I think you can set a breakpoint there for a first test. Maybe set it
> at line 4869 where show_banner(argc, argv, options); is called, so you
> can test what happens when jumping in.
> For first try just run ./ffmpeg_g (stands for gdb and includes
> symbols) without arguments or try ./ffmpeg_g --version.
>
> Curious if that works.
>
> -Ulf
>
> Am 04.07.19 um 18:35 schrieb Geertjan Wielenga:
>> OK, I ran ./configure and then built in NetBeans, so now I have
>> binaries and I can run them etc. Where do I need to place a
>> breakpoint when trying to set up the Debugger?
>>
>> Gj
>>
>> On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga <geertjan@apache.org
>> <ma...@apache.org>> wrote:
>>
>>     Maybe you can provide instructions on the site about how to set
>>     up the sources so they can be run in NetBeans (and then once I
>>     have that working, I'll work on how to debug from there, using
>>     GNU debugger on Mac, which I have working now for standard C/C++
>>     projects, but can't start applying to your project until I have
>>     set it up correctly in the way that you have it).
>>
>>     Gj
>>
>>     On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ulf.Zibis@cosoco.de
>>     <ma...@cosoco.de>> wrote:
>>
>>         Hey Geertjan,
>>
>>         this is a great offer, thanks.
>>         Here the Git clone command: git clone
>>         https://git.ffmpeg.org/ffmpeg.git ffmpeg
>>
>>         The documentations for developers:
>>         https://ffmpeg.org/developer.html
>>
>>         Did you get my current settings in the attachment from my
>>         other thread 2 days ago?
>>
>>         -Ulf
>>
>>         Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>>         I’ll look into it if you provide the starting point of an
>>>         application on GitHub, i.e., the sources that are to be
>>>         imported as a C/C++ project. Then I’ll have a scenario to
>>>         use as a starting point to figure this out.
>>>
>>>         Gj
>>>
>>>         On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ulf.Zibis@cosoco.de
>>>         <ma...@cosoco.de>> wrote:
>>>
>>>             Hi,
>>>
>>>             I'm wondering if there would be a tutorial on how to
>>>             configure a C/C++
>>>             "Project from existing sources" to enable the debugger
>>>             facility of
>>>             NetBeans IDE.
>>>
>>>             With a project created from the inbuild NetBeans
>>>             templates it works
>>>             fine, but not with a "Project from existing sources".
>>>
>>>             Can one give me some hints please?
>>>
>>>             -Ulf
>>>
>>>
>>>             ---------------------------------------------------------------------
>>>             To unsubscribe, e-mail:
>>>             users-unsubscribe@netbeans.apache.org
>>>             <ma...@netbeans.apache.org>
>>>             For additional commands, e-mail:
>>>             users-help@netbeans.apache.org
>>>             <ma...@netbeans.apache.org>
>>>
>>>             For further information about the NetBeans mailing
>>>             lists, visit:
>>>             https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Hey great. Does it work without changing anything in "Project from
existing sources"?

YouTube clip would be nice if not too much work.

Thanks

-Ulf

Am 04.07.19 um 19:53 schrieb Geertjan Wielenga:
> Line 4850, i.e., 'register_exit(ffmpeg_cleanup);' works better for this.
>
> Works without a problem, I can make a YouTube clip of this if you like.
>
> Gj
>
> On Thu, Jul 4, 2019 at 7:29 PM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     The main() function is in fftools/ffmpeg.c
>     I think you can set a breakpoint there for a first test. Maybe set
>     it at line 4869 where show_banner(argc, argv, options); is called,
>     so you can test what happens when jumping in.
>     For first try just run ./ffmpeg_g (stands for gdb and includes
>     symbols) without arguments or try ./ffmpeg_g --version.
>
>     Curious if that works.
>
>     -Ulf
>
>     Am 04.07.19 um 18:35 schrieb Geertjan Wielenga:
>>     OK, I ran ./configure and then built in NetBeans, so now I have
>>     binaries and I can run them etc. Where do I need to place a
>>     breakpoint when trying to set up the Debugger?
>>
>>     Gj
>>
>>     On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga
>>     <geertjan@apache.org <ma...@apache.org>> wrote:
>>
>>         Maybe you can provide instructions on the site about how to
>>         set up the sources so they can be run in NetBeans (and then
>>         once I have that working, I'll work on how to debug from
>>         there, using GNU debugger on Mac, which I have working now
>>         for standard C/C++ projects, but can't start applying to your
>>         project until I have set it up correctly in the way that you
>>         have it).
>>
>>         Gj
>>
>>         On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis
>>         <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>
>>             Hey Geertjan,
>>
>>             this is a great offer, thanks.
>>             Here the Git clone command: git clone
>>             https://git.ffmpeg.org/ffmpeg.git ffmpeg
>>
>>             The documentations for developers:
>>             https://ffmpeg.org/developer.html
>>
>>             Did you get my current settings in the attachment from my
>>             other thread 2 days ago?
>>
>>             -Ulf
>>
>>             Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>>             I’ll look into it if you provide the starting point of
>>>             an application on GitHub, i.e., the sources that are to
>>>             be imported as a C/C++ project. Then I’ll have a
>>>             scenario to use as a starting point to figure this out.
>>>
>>>             Gj
>>>
>>>             On Thu, 4 Jul 2019 at 12:28, Ulf Zibis
>>>             <Ulf.Zibis@cosoco.de <ma...@cosoco.de>> wrote:
>>>
>>>                 Hi,
>>>
>>>                 I'm wondering if there would be a tutorial on how to
>>>                 configure a C/C++
>>>                 "Project from existing sources" to enable the
>>>                 debugger facility of
>>>                 NetBeans IDE.
>>>
>>>                 With a project created from the inbuild NetBeans
>>>                 templates it works
>>>                 fine, but not with a "Project from existing sources".
>>>
>>>                 Can one give me some hints please?
>>>
>>>                 -Ulf
>>>
>>>
>>>                 ---------------------------------------------------------------------
>>>                 To unsubscribe, e-mail:
>>>                 users-unsubscribe@netbeans.apache.org
>>>                 <ma...@netbeans.apache.org>
>>>                 For additional commands, e-mail:
>>>                 users-help@netbeans.apache.org
>>>                 <ma...@netbeans.apache.org>
>>>
>>>                 For further information about the NetBeans mailing
>>>                 lists, visit:
>>>                 https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
Line 4850, i.e., 'register_exit(ffmpeg_cleanup);' works better for this.

Works without a problem, I can make a YouTube clip of this if you like.

Gj

On Thu, Jul 4, 2019 at 7:29 PM Ulf Zibis <Ul...@cosoco.de> wrote:

> The main() function is in fftools/ffmpeg.c
> I think you can set a breakpoint there for a first test. Maybe set it at
> line 4869 where show_banner(argc, argv, options); is called, so you can
> test what happens when jumping in.
> For first try just run ./ffmpeg_g (stands for gdb and includes symbols)
> without arguments or try ./ffmpeg_g --version.
>
> Curious if that works.
>
> -Ulf
> Am 04.07.19 um 18:35 schrieb Geertjan Wielenga:
>
> OK, I ran ./configure and then built in NetBeans, so now I have binaries
> and I can run them etc. Where do I need to place a breakpoint when trying
> to set up the Debugger?
>
> Gj
>
> On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
>> Maybe you can provide instructions on the site about how to set up the
>> sources so they can be run in NetBeans (and then once I have that working,
>> I'll work on how to debug from there, using GNU debugger on Mac, which I
>> have working now for standard C/C++ projects, but can't start applying to
>> your project until I have set it up correctly in the way that you have it).
>>
>> Gj
>>
>> On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Hey Geertjan,
>>>
>>> this is a great offer, thanks.
>>> Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
>>> ffmpeg
>>>
>>> The documentations for developers: https://ffmpeg.org/developer.html
>>>
>>> Did you get my current settings in the attachment from my other thread 2
>>> days ago?
>>>
>>> -Ulf
>>> Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>>
>>> I’ll look into it if you provide the starting point of an application on
>>> GitHub, i.e., the sources that are to be imported as a C/C++ project. Then
>>> I’ll have a scenario to use as a starting point to figure this out.
>>>
>>> Gj
>>>
>>> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm wondering if there would be a tutorial on how to configure a C/C++
>>>> "Project from existing sources" to enable the debugger facility of
>>>> NetBeans IDE.
>>>>
>>>> With a project created from the inbuild NetBeans templates it works
>>>> fine, but not with a "Project from existing sources".
>>>>
>>>> Can one give me some hints please?
>>>>
>>>> -Ulf
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
The main() function is in fftools/ffmpeg.c
I think you can set a breakpoint there for a first test. Maybe set it at
line 4869 where show_banner(argc, argv, options); is called, so you can
test what happens when jumping in.
For first try just run ./ffmpeg_g (stands for gdb and includes symbols)
without arguments or try ./ffmpeg_g --version.

Curious if that works.

-Ulf

Am 04.07.19 um 18:35 schrieb Geertjan Wielenga:
> OK, I ran ./configure and then built in NetBeans, so now I have
> binaries and I can run them etc. Where do I need to place a breakpoint
> when trying to set up the Debugger?
>
> Gj
>
> On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga <geertjan@apache.org
> <ma...@apache.org>> wrote:
>
>     Maybe you can provide instructions on the site about how to set up
>     the sources so they can be run in NetBeans (and then once I have
>     that working, I'll work on how to debug from there, using GNU
>     debugger on Mac, which I have working now for standard C/C++
>     projects, but can't start applying to your project until I have
>     set it up correctly in the way that you have it).
>
>     Gj
>
>     On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ulf.Zibis@cosoco.de
>     <ma...@cosoco.de>> wrote:
>
>         Hey Geertjan,
>
>         this is a great offer, thanks.
>         Here the Git clone command: git clone
>         https://git.ffmpeg.org/ffmpeg.git ffmpeg
>
>         The documentations for developers:
>         https://ffmpeg.org/developer.html
>
>         Did you get my current settings in the attachment from my
>         other thread 2 days ago?
>
>         -Ulf
>
>         Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>         I’ll look into it if you provide the starting point of an
>>         application on GitHub, i.e., the sources that are to be
>>         imported as a C/C++ project. Then I’ll have a scenario to use
>>         as a starting point to figure this out.
>>
>>         Gj
>>
>>         On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ulf.Zibis@cosoco.de
>>         <ma...@cosoco.de>> wrote:
>>
>>             Hi,
>>
>>             I'm wondering if there would be a tutorial on how to
>>             configure a C/C++
>>             "Project from existing sources" to enable the debugger
>>             facility of
>>             NetBeans IDE.
>>
>>             With a project created from the inbuild NetBeans
>>             templates it works
>>             fine, but not with a "Project from existing sources".
>>
>>             Can one give me some hints please?
>>
>>             -Ulf
>>
>>
>>             ---------------------------------------------------------------------
>>             To unsubscribe, e-mail:
>>             users-unsubscribe@netbeans.apache.org
>>             <ma...@netbeans.apache.org>
>>             For additional commands, e-mail:
>>             users-help@netbeans.apache.org
>>             <ma...@netbeans.apache.org>
>>
>>             For further information about the NetBeans mailing lists,
>>             visit:
>>             https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
OK, I ran ./configure and then built in NetBeans, so now I have binaries
and I can run them etc. Where do I need to place a breakpoint when trying
to set up the Debugger?

Gj

On Thu, Jul 4, 2019 at 4:56 PM Geertjan Wielenga <ge...@apache.org>
wrote:

> Maybe you can provide instructions on the site about how to set up the
> sources so they can be run in NetBeans (and then once I have that working,
> I'll work on how to debug from there, using GNU debugger on Mac, which I
> have working now for standard C/C++ projects, but can't start applying to
> your project until I have set it up correctly in the way that you have it).
>
> Gj
>
> On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Hey Geertjan,
>>
>> this is a great offer, thanks.
>> Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
>> ffmpeg
>>
>> The documentations for developers: https://ffmpeg.org/developer.html
>>
>> Did you get my current settings in the attachment from my other thread 2
>> days ago?
>>
>> -Ulf
>> Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>
>> I’ll look into it if you provide the starting point of an application on
>> GitHub, i.e., the sources that are to be imported as a C/C++ project. Then
>> I’ll have a scenario to use as a starting point to figure this out.
>>
>> Gj
>>
>> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Hi,
>>>
>>> I'm wondering if there would be a tutorial on how to configure a C/C++
>>> "Project from existing sources" to enable the debugger facility of
>>> NetBeans IDE.
>>>
>>> With a project created from the inbuild NetBeans templates it works
>>> fine, but not with a "Project from existing sources".
>>>
>>> Can one give me some hints please?
>>>
>>> -Ulf
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
Where should I place the breakpoint for the debugger?

Gj

On Thu, 4 Jul 2019 at 19:14, Ulf Zibis <Ul...@cosoco.de> wrote:

> 1.) This is not my project, so I have no authority to change anything on
> the site.
>
> 2.) In NetBeans I set "Pre-Build" to ./configure and "Build" to make,
> nothing more. (Didn't you see that from my nbproject.zip ?)
>
> 3.) If it's the GNU debugger aka gdb, then I assume, the same
> configuration for Mac and Ubuntu would fit.
>
> -Ulf
> Am 04.07.19 um 16:56 schrieb Geertjan Wielenga:
>
> Maybe you can provide instructions on the site about how to set up the
> sources so they can be run in NetBeans (and then once I have that working,
> I'll work on how to debug from there, using GNU debugger on Mac, which I
> have working now for standard C/C++ projects, but can't start applying to
> your project until I have set it up correctly in the way that you have it).
>
> Gj
>
> On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Hey Geertjan,
>>
>> this is a great offer, thanks.
>> Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
>> ffmpeg
>>
>> The documentations for developers: https://ffmpeg.org/developer.html
>>
>> Did you get my current settings in the attachment from my other thread 2
>> days ago?
>>
>> -Ulf
>> Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>
>> I’ll look into it if you provide the starting point of an application on
>> GitHub, i.e., the sources that are to be imported as a C/C++ project. Then
>> I’ll have a scenario to use as a starting point to figure this out.
>>
>> Gj
>>
>> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Hi,
>>>
>>> I'm wondering if there would be a tutorial on how to configure a C/C++
>>> "Project from existing sources" to enable the debugger facility of
>>> NetBeans IDE.
>>>
>>> With a project created from the inbuild NetBeans templates it works
>>> fine, but not with a "Project from existing sources".
>>>
>>> Can one give me some hints please?
>>>
>>> -Ulf
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
1.) This is not my project, so I have no authority to change anything on
the site.

2.) In NetBeans I set "Pre-Build" to ./configure and "Build" to make,
nothing more. (Didn't you see that from my nbproject.zip ?)

3.) If it's the GNU debugger aka gdb, then I assume, the same
configuration for Mac and Ubuntu would fit.

-Ulf

Am 04.07.19 um 16:56 schrieb Geertjan Wielenga:
> Maybe you can provide instructions on the site about how to set up the
> sources so they can be run in NetBeans (and then once I have that
> working, I'll work on how to debug from there, using GNU debugger on
> Mac, which I have working now for standard C/C++ projects, but can't
> start applying to your project until I have set it up correctly in the
> way that you have it).
>
> Gj
>
> On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     Hey Geertjan,
>
>     this is a great offer, thanks.
>     Here the Git clone command: git clone
>     https://git.ffmpeg.org/ffmpeg.git ffmpeg
>
>     The documentations for developers: https://ffmpeg.org/developer.html
>
>     Did you get my current settings in the attachment from my other
>     thread 2 days ago?
>
>     -Ulf
>
>     Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>     I’ll look into it if you provide the starting point of an
>>     application on GitHub, i.e., the sources that are to be imported
>>     as a C/C++ project. Then I’ll have a scenario to use as a
>>     starting point to figure this out.
>>
>>     Gj
>>
>>     On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ulf.Zibis@cosoco.de
>>     <ma...@cosoco.de>> wrote:
>>
>>         Hi,
>>
>>         I'm wondering if there would be a tutorial on how to
>>         configure a C/C++
>>         "Project from existing sources" to enable the debugger
>>         facility of
>>         NetBeans IDE.
>>
>>         With a project created from the inbuild NetBeans templates it
>>         works
>>         fine, but not with a "Project from existing sources".
>>
>>         Can one give me some hints please?
>>
>>         -Ulf
>>
>>
>>         ---------------------------------------------------------------------
>>         To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>         <ma...@netbeans.apache.org>
>>         For additional commands, e-mail:
>>         users-help@netbeans.apache.org
>>         <ma...@netbeans.apache.org>
>>
>>         For further information about the NetBeans mailing lists, visit:
>>         https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
Maybe you can provide instructions on the site about how to set up the
sources so they can be run in NetBeans (and then once I have that working,
I'll work on how to debug from there, using GNU debugger on Mac, which I
have working now for standard C/C++ projects, but can't start applying to
your project until I have set it up correctly in the way that you have it).

Gj

On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ul...@cosoco.de> wrote:

> Hey Geertjan,
>
> this is a great offer, thanks.
> Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
> ffmpeg
>
> The documentations for developers: https://ffmpeg.org/developer.html
>
> Did you get my current settings in the attachment from my other thread 2
> days ago?
>
> -Ulf
> Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>
> I’ll look into it if you provide the starting point of an application on
> GitHub, i.e., the sources that are to be imported as a C/C++ project. Then
> I’ll have a scenario to use as a starting point to figure this out.
>
> Gj
>
> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Hi,
>>
>> I'm wondering if there would be a tutorial on how to configure a C/C++
>> "Project from existing sources" to enable the debugger facility of
>> NetBeans IDE.
>>
>> With a project created from the inbuild NetBeans templates it works
>> fine, but not with a "Project from existing sources".
>>
>> Can one give me some hints please?
>>
>> -Ulf
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Hi,

I'm on Ubuntu 18.04 64 bit. The debugger should be gdb.

-Ulf

Am 04.07.19 um 16:23 schrieb Geertjan Wielenga:
> Which debugger do you use and which operating system?
>
> Gj
>
> On Thu, Jul 4, 2019 at 3:57 PM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     Thanks!
>
>     I'd tried that for a while, but was lost in the huge config files.
>     It would be really great, if there were a tutorial or
>     documentation on that.
>
>     If you find some time again, that would be great, and let me know
>     your findings then.
>
>     Aside: You need not to CC: me privately, otherwise I get your
>     messages twice. Changing the settings at mailman is not a
>     solution, as then I would receive the emails without "List-Id"
>     tag, which prevents the "Answer List" function in Thunderbird and
>     maybe other mail clients.
>
>     -Ulf
>
>     Am 04.07.19 um 14:18 schrieb Geertjan Wielenga:
>>     Yes, but there's a lot to figure out and I'm not a C/C++
>>     programmer, I'll look at this when I can, but I'd recommend
>>     seeing as you have the debugger working for a standard C/C++
>>     project to try and work your code into that structure rather than
>>     using the 'from existing sources' approach.
>>
>>     Gj
>>
>>     On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ulf.Zibis@cosoco.de
>>     <ma...@cosoco.de>> wrote:
>>
>>         Hey Geertjan,
>>
>>         this is a great offer, thanks.
>>         Here the Git clone command: git clone
>>         https://git.ffmpeg.org/ffmpeg.git ffmpeg
>>
>>         The documentations for developers:
>>         https://ffmpeg.org/developer.html
>>
>>         Did you get my current settings in the attachment from my
>>         other thread 2 days ago?
>>
>>         -Ulf
>>
>>         Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>>         I’ll look into it if you provide the starting point of an
>>>         application on GitHub, i.e., the sources that are to be
>>>         imported as a C/C++ project. Then I’ll have a scenario to
>>>         use as a starting point to figure this out.
>>>
>>>         Gj
>>>
>>>         On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ulf.Zibis@cosoco.de
>>>         <ma...@cosoco.de>> wrote:
>>>
>>>             Hi,
>>>
>>>             I'm wondering if there would be a tutorial on how to
>>>             configure a C/C++
>>>             "Project from existing sources" to enable the debugger
>>>             facility of
>>>             NetBeans IDE.
>>>
>>>             With a project created from the inbuild NetBeans
>>>             templates it works
>>>             fine, but not with a "Project from existing sources".
>>>
>>>             Can one give me some hints please?
>>>
>>>             -Ulf
>>>
>>>
>>>             ---------------------------------------------------------------------
>>>             To unsubscribe, e-mail:
>>>             users-unsubscribe@netbeans.apache.org
>>>             <ma...@netbeans.apache.org>
>>>             For additional commands, e-mail:
>>>             users-help@netbeans.apache.org
>>>             <ma...@netbeans.apache.org>
>>>
>>>             For further information about the NetBeans mailing
>>>             lists, visit:
>>>             https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
Which debugger do you use and which operating system?

Gj

On Thu, Jul 4, 2019 at 3:57 PM Ulf Zibis <Ul...@cosoco.de> wrote:

> Thanks!
>
> I'd tried that for a while, but was lost in the huge config files. It
> would be really great, if there were a tutorial or documentation on that.
>
> If you find some time again, that would be great, and let me know your
> findings then.
>
> Aside: You need not to CC: me privately, otherwise I get your messages
> twice. Changing the settings at mailman is not a solution, as then I would
> receive the emails without "List-Id" tag, which prevents the "Answer List"
> function in Thunderbird and maybe other mail clients.
>
> -Ulf
> Am 04.07.19 um 14:18 schrieb Geertjan Wielenga:
>
> Yes, but there's a lot to figure out and I'm not a C/C++ programmer, I'll
> look at this when I can, but I'd recommend seeing as you have the debugger
> working for a standard C/C++ project to try and work your code into that
> structure rather than using the 'from existing sources' approach.
>
> Gj
>
> On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Hey Geertjan,
>>
>> this is a great offer, thanks.
>> Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
>> ffmpeg
>>
>> The documentations for developers: https://ffmpeg.org/developer.html
>>
>> Did you get my current settings in the attachment from my other thread 2
>> days ago?
>>
>> -Ulf
>> Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>
>> I’ll look into it if you provide the starting point of an application on
>> GitHub, i.e., the sources that are to be imported as a C/C++ project. Then
>> I’ll have a scenario to use as a starting point to figure this out.
>>
>> Gj
>>
>> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:
>>
>>> Hi,
>>>
>>> I'm wondering if there would be a tutorial on how to configure a C/C++
>>> "Project from existing sources" to enable the debugger facility of
>>> NetBeans IDE.
>>>
>>> With a project created from the inbuild NetBeans templates it works
>>> fine, but not with a "Project from existing sources".
>>>
>>> Can one give me some hints please?
>>>
>>> -Ulf
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Thanks!

I'd tried that for a while, but was lost in the huge config files. It
would be really great, if there were a tutorial or documentation on that.

If you find some time again, that would be great, and let me know your
findings then.

Aside: You need not to CC: me privately, otherwise I get your messages
twice. Changing the settings at mailman is not a solution, as then I
would receive the emails without "List-Id" tag, which prevents the
"Answer List" function in Thunderbird and maybe other mail clients.

-Ulf

Am 04.07.19 um 14:18 schrieb Geertjan Wielenga:
> Yes, but there's a lot to figure out and I'm not a C/C++ programmer,
> I'll look at this when I can, but I'd recommend seeing as you have the
> debugger working for a standard C/C++ project to try and work your
> code into that structure rather than using the 'from existing sources'
> approach.
>
> Gj
>
> On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     Hey Geertjan,
>
>     this is a great offer, thanks.
>     Here the Git clone command: git clone
>     https://git.ffmpeg.org/ffmpeg.git ffmpeg
>
>     The documentations for developers: https://ffmpeg.org/developer.html
>
>     Did you get my current settings in the attachment from my other
>     thread 2 days ago?
>
>     -Ulf
>
>     Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>>     I’ll look into it if you provide the starting point of an
>>     application on GitHub, i.e., the sources that are to be imported
>>     as a C/C++ project. Then I’ll have a scenario to use as a
>>     starting point to figure this out.
>>
>>     Gj
>>
>>     On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ulf.Zibis@cosoco.de
>>     <ma...@cosoco.de>> wrote:
>>
>>         Hi,
>>
>>         I'm wondering if there would be a tutorial on how to
>>         configure a C/C++
>>         "Project from existing sources" to enable the debugger
>>         facility of
>>         NetBeans IDE.
>>
>>         With a project created from the inbuild NetBeans templates it
>>         works
>>         fine, but not with a "Project from existing sources".
>>
>>         Can one give me some hints please?
>>
>>         -Ulf
>>
>>
>>         ---------------------------------------------------------------------
>>         To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>         <ma...@netbeans.apache.org>
>>         For additional commands, e-mail:
>>         users-help@netbeans.apache.org
>>         <ma...@netbeans.apache.org>
>>
>>         For further information about the NetBeans mailing lists, visit:
>>         https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
Yes, but there's a lot to figure out and I'm not a C/C++ programmer, I'll
look at this when I can, but I'd recommend seeing as you have the debugger
working for a standard C/C++ project to try and work your code into that
structure rather than using the 'from existing sources' approach.

Gj

On Thu, Jul 4, 2019 at 12:43 PM Ulf Zibis <Ul...@cosoco.de> wrote:

> Hey Geertjan,
>
> this is a great offer, thanks.
> Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
> ffmpeg
>
> The documentations for developers: https://ffmpeg.org/developer.html
>
> Did you get my current settings in the attachment from my other thread 2
> days ago?
>
> -Ulf
> Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
>
> I’ll look into it if you provide the starting point of an application on
> GitHub, i.e., the sources that are to be imported as a C/C++ project. Then
> I’ll have a scenario to use as a starting point to figure this out.
>
> Gj
>
> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:
>
>> Hi,
>>
>> I'm wondering if there would be a tutorial on how to configure a C/C++
>> "Project from existing sources" to enable the debugger facility of
>> NetBeans IDE.
>>
>> With a project created from the inbuild NetBeans templates it works
>> fine, but not with a "Project from existing sources".
>>
>> Can one give me some hints please?
>>
>> -Ulf
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Hey Geertjan,

this is a great offer, thanks.
Here the Git clone command: git clone https://git.ffmpeg.org/ffmpeg.git
ffmpeg

The documentations for developers: https://ffmpeg.org/developer.html

Did you get my current settings in the attachment from my other thread 2
days ago?

-Ulf

Am 04.07.19 um 12:31 schrieb Geertjan Wielenga:
> I’ll look into it if you provide the starting point of an application
> on GitHub, i.e., the sources that are to be imported as a C/C++
> project. Then I’ll have a scenario to use as a starting point to
> figure this out.
>
> Gj
>
> On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ulf.Zibis@cosoco.de
> <ma...@cosoco.de>> wrote:
>
>     Hi,
>
>     I'm wondering if there would be a tutorial on how to configure a C/C++
>     "Project from existing sources" to enable the debugger facility of
>     NetBeans IDE.
>
>     With a project created from the inbuild NetBeans templates it works
>     fine, but not with a "Project from existing sources".
>
>     Can one give me some hints please?
>
>     -Ulf
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>     For additional commands, e-mail: users-help@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>
>     For further information about the NetBeans mailing lists, visit:
>     https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Re: Debugger doesn't work with C/C++ "Project from existing sources"

Posted by Geertjan Wielenga <ge...@apache.org>.
I’ll look into it if you provide the starting point of an application on
GitHub, i.e., the sources that are to be imported as a C/C++ project. Then
I’ll have a scenario to use as a starting point to figure this out.

Gj

On Thu, 4 Jul 2019 at 12:28, Ulf Zibis <Ul...@cosoco.de> wrote:

> Hi,
>
> I'm wondering if there would be a tutorial on how to configure a C/C++
> "Project from existing sources" to enable the debugger facility of
> NetBeans IDE.
>
> With a project created from the inbuild NetBeans templates it works
> fine, but not with a "Project from existing sources".
>
> Can one give me some hints please?
>
> -Ulf
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>