From: Sabeur L. <laf...@gm...> - 2015-11-30 23:33:23
|
Hello everyone, I started recently to work on the master version of Qucs in the purpose of adding new elements to Qucsator (such as a winding). I downloaded the source code (master), installed dependencies and compiled everything as described in the *CMakelists.txt* and building instructions Qt Creator on Windows. When trying to use the debugger (*GDB*) in order to check how the simulator works, it works only when breakpoints are set in the main function (file *ucs.cpp*). It ignores all breakpoints set outside that file. For example (see screen capture here: *http://imgur.com/IeqRQIx <http://imgur.com/IeqRQIx>*): - The debugger stops in breakpoint at the line *232 *(*ucs.cpp*). - When *F11 *is hit to step into *in->netlist()* function, the debugger moves directly to line *238 *in the same file. - The instruction at line *91 *in file *input.cpp* is ignored The same thing happens with all the other files. My configuration is as following: - Windows 7 Home Premium (64-bit OS) - Qt Creator 3.5.1 - Qt 4.8.6 - MinGW 4.9.2 32 bit - GNU gdb 7.8 for MinGW 4.9.2 32 bit The project dependencies are the same as given in *https://github.com/Qucs/qucs/wiki/Build-Windows <https://github.com/Qucs/qucs/wiki/Build-Windows>* Please, notice that I'm still a beginner with Qt platform and GNU development toolchain. I have already forced debug mode by adding SET(CMAKE_BUILD_TYPE Debug) to *CMakelists.txt *and enabled the option "*Debug all children*" in *GDB Extended* tab (Tools > Option > Debugger > GDB Extended). But nothing worked ! My question: *How to do to debug properly the Qucs source code?* Thank you in advance. Regards, Sabeur |