How can I tell if a library was compiled with -g?

The suggested command objdump –debugging libinspected.a objdump –debugging libinspected.so gives me always the same result at least on Ubuntu/Linaro 4.5.2: libinspected.a: file format elf64-x86-64 libinspected.so: file format elf64-x86-64 no matter whether the archive/shared library was built with or without -g option What really helped me to determine whether -g was used is readelf tool: readelf … Read more

Release generating .pdb files, why?

Because without the PDB files, it would be impossible to debug a “Release” build by anything other than address-level debugging. Optimizations really do a number on your code, making it very difficult to find the culprit if something goes wrong (say, an exception is thrown). Even setting breakpoints is extremely difficult, because lines of source … Read more

#if DEBUG vs. Conditional(“DEBUG”)

It really depends on what you’re going for: #if DEBUG: The code in here won’t even reach the IL on release. [Conditional(“DEBUG”)]: This code will reach the IL, however calls to the method will be omitted unless DEBUG is set when the caller is compiled. Personally I use both depending on the situation: Conditional(“DEBUG”) Example: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)