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

2019-07-05 Thread Ulf Zibis
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.apa

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

2019-07-05 Thread Geertjan Wielenga
On Fri, Jul 5, 2019 at 12:27 PM Ulf Zibis 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 d

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

2019-07-05 Thread Ulf Zibis
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

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

2019-07-05 Thread 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: > A

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

2019-07-05 Thread Geertjan Wielenga
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 NetBean

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

2019-07-05 Thread Ulf Zibis
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-c

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

2019-07-05 Thread 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 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 > step

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

2019-07-05 Thread 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, reprod

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

2019-07-05 Thread Ulf Zibis
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

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

2019-07-04 Thread 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 c

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

2019-07-04 Thread Ulf Zibis
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/netbea

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

2019-07-04 Thread 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/appli

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

2019-07-04 Thread Ulf Zibis
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 requiremen

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

2019-07-04 Thread 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 wrote: > Sorry, I think I don't understand your question. > > If you were able to run the

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

2019-07-04 Thread Ulf Zibis
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 h

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

2019-07-04 Thread Ulf Zibis
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 probl

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

2019-07-04 Thread Geertjan Wielenga
But how to run the debugger on that? Gj On Thu, Jul 4, 2019 at 7:54 PM Ulf Zibis 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

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

2019-07-04 Thread Ulf Zibis
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

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

2019-07-04 Thread 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 wrote: > The main() function is in fftools/ffmpeg.c > I think you can set a breakpoint there for a first

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

2019-07-04 Thread 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) with

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

2019-07-04 Thread Geertjan Wielenga
Where should I place the breakpoint for the debugger? Gj On Thu, 4 Jul 2019 at 19:14, Ulf Zibis 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

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

2019-07-04 Thread Ulf Zibis
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

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

2019-07-04 Thread Ulf Zibis
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 > wrote: > > Thanks! > > I'd tried tha

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

2019-07-04 Thread 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 wrote: > Maybe you can provide instructions on the site about how to set

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

2019-07-04 Thread 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 p

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

2019-07-04 Thread Geertjan Wielenga
Which debugger do you use and which operating system? Gj On Thu, Jul 4, 2019 at 3:57 PM Ulf Zibis 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 agai

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

2019-07-04 Thread Ulf Zibis
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 y

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

2019-07-04 Thread 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

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

2019-07-04 Thread Ulf Zibis
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 u

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

2019-07-04 Thread 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 wrote: > Hi, > > I'm wondering if the

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

2019-07-04 Thread Ulf Zibis
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 so