News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to debug generated files

Started by mingodad, March 04, 2012, 10:04:27 AM

Previous topic - Next topic

mingodad

I'm using lazyc++ to generate *.cpp & *.h it works fine with codeblocks except when debuging.

I get the file and line number on the debugger console but the editor doesn't follow then and I should scroll manually to follow the code.

The generated file is like the ones generated by bison and flex, they contain line indications:

#line 1028 "D:/dadbiz++/dev/ourbiz3/parts/dadlib-light.zz"
static int my_get_var (char const * buf, size_t buf_len, char const * * name, size_t & name_len, char const * * value, size_t & value_len);
#line 26 "D:/dadbiz++/dev/ourbiz3/parts/dadlib-light.zz"
double round (double num, unsigned int udigits)
#line 27 "D:/dadbiz++/dev/ourbiz3/parts/dadlib-light.zz"

example of what appears on the debug console:

At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:98
At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:99
At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:104
At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:105
At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:106
At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:108
At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:109
At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:111
At d:\dadbiz++\dev\ourbiz3\parts\ourbiz-sql.zz:23


I am missing some settings ?
Shouldn't it work without any special settings ?

Thanks in advance for any help !

oBFusCATed

Search the forum, I think we had a discussion about this lazy stuff before.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]