Author Topic: Debugging pregenerated code  (Read 2516 times)

Offline ErwinMars

  • Single posting newcomer
  • *
  • Posts: 7
Debugging pregenerated code
« on: August 09, 2009, 09:04:46 pm »
Few days ago, i start moving programs to C::B which needs to be precompiled with the DB2 precompiler to translate the embedded sql statements. The project build is solved. I inserted in Settings->Compiler and debugger ... dialog the new file type sqx and the command, which generates the *.c or *.cpp files. They are shown as Auto-generated in the project tree.

The generated cpp files have a lot of #line 92 "EMEZPdCv.sqx" statements. This helps the output parsing to show the line in the original file, if a compile error is found.

Now a problem with debugging occurs. If i set a breakpoint in the sqx or in the generated cpp file and start, gdb stops and writes out a message, where it stops. Thats ok, but the problem is, that the cursor is not positioned on the breakpoint line in the source.

Is this a bug or do i something wrong.

Btw. i read the article in the C::B wiki about ddebugging.

Thanks in advancde

Erwin