Why can I see the source file names or line numbers associated with a defect ?
There can be several reasons for this. First make sure the debugging symbols are available for the assemblies being analyzed. Gendarme requires either a .mdb or .pdb to be located in the same directory as the matching .exe or .dll files. Without them Gendarme won’t be able to report the source files (or line numbers) for any defect. If debugging symbols are present then ensure that Mono.Cecil.Pdb.dll (under Windows for .pdb support) or Mono.Cecil.Mdb.dll (under Linux or Windows for .mdb support) is present in the Gendarme installation directory. The installer should have provided them automatically – but a manual installation (or compiling from source code) could be missing them. If some defects, located in the same assembly, have source file names (or line numbers) then your setup should be correct. What’s happening is likely a lack of a matching sequence point in the debugging symbols (see previous answer about them). In some rare circumstances it could be possible that no sequence p
Related Questions
- Using the CCscripting BreakpointSetLine() API puts the breakpoint in the Breakpoint table but doesn show the file or source line. Why?
- Sorry, Im not familiar with C++. Does the example print line numbers of the source or of the destination file?
- How Do I View Pivot Table Source Data File And Field Names?