CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2009
    Location
    Finally back in Alaska
    Posts
    141

    is it possible to use a different file for the source in the debugger?

    Visual studio 2012

    I have a project that has a few .asm files (assembly language code), I have the compiler/assembler set to create a list file for the assembly code and would like the debugger to
    use the .lst file for the source instead of the .asm files because in the .asm files the macros are not expanded like they are in the .lst files which makes debugging dificult
    sometimes.

  2. #2
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: is it possible to use a different file for the source in the debugger?

    One way to achieve this I can tink of is to tweak your project settings, so compilation of the C++ files in question outputs assembly language "listing" files that the assembler is able to process as its input, but no .obj output files (or do create .obj files but later ignore them in the build process). Then use the assembler to compile the C++ compiler's output .asm files into .obj files and use these in the linking step.

    This would, of course, require considerable fiddling with the project settings I can't explain in detail off-hand either. It will also most probably have side effects you may not like, like the debugger displaying mangled names rather than neatly readable C++ source names.
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured