Debug information?

My "query" is throwing an exception and stacktrace. It would be nice if the stacktrace included line numbers. In the past I have included a .PDB file and the line numbers appear in the stack. Is it possible to include a PDB and have LINQPad use it when generating a stacktrace? If so where would I copy it?

Comments

  • edited May 9
    Are you referring to line numbers within the assembly that you're referencing?

    If so, LINQPad does not copy over the PDB files to avoid the I/O overhead. However, there are a couple of workarounds.

    The first is to explicitly add a reference to the .PDB file (as well as the .DLL).

    The second is to go to Edit | Preferences | Advanced and set "Do not shadow assembly references" to true, and re-start LINQPad. This will stop LINQPad from copying files altogether, although it may lock the files that you reference.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!